Skip to content

Commit 877e077

Browse files
committed
Remove need to pass in spies to initConverse
They aren't used anymore.
1 parent 9d77a4e commit 877e077

31 files changed

+358
-407
lines changed

spec/autocomplete.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
it("shows all autocompletion options when the user presses @",
1515
mock.initConverse(
16-
null, ['rosterGroupsFetched'], {},
16+
['rosterGroupsFetched'], {},
1717
async function (done, _converse) {
1818

1919
await test_utils.openAndEnterChatRoom(_converse, '[email protected]', 'tom');
@@ -55,7 +55,7 @@
5555

5656
it("autocompletes when the user presses tab",
5757
mock.initConverse(
58-
null, ['rosterGroupsFetched'], {},
58+
['rosterGroupsFetched'], {},
5959
async function (done, _converse) {
6060

6161
await test_utils.openAndEnterChatRoom(_converse, '[email protected]', 'romeo');
@@ -166,7 +166,7 @@
166166

167167
it("autocompletes when the user presses backspace",
168168
mock.initConverse(
169-
null, ['rosterGroupsFetched'], {},
169+
['rosterGroupsFetched'], {},
170170
async function (done, _converse) {
171171

172172
await test_utils.openAndEnterChatRoom(_converse, '[email protected]', 'romeo');

spec/bookmarks.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
describe("A chat room", function () {
1717

1818
it("can be bookmarked", mock.initConverse(
19-
null, ['rosterGroupsFetched', 'emojisInitialized'], {},
19+
['rosterGroupsFetched', 'emojisInitialized'], {},
2020
async function (done, _converse) {
2121

2222
await test_utils.waitUntilDiscoConfirmed(
@@ -142,7 +142,7 @@
142142

143143

144144
it("will be automatically opened if 'autojoin' is set on the bookmark", mock.initConverse(
145-
null, ['rosterGroupsFetched'], {},
145+
['rosterGroupsFetched'], {},
146146
async function (done, _converse) {
147147

148148
await test_utils.waitUntilDiscoConfirmed(
@@ -186,7 +186,7 @@
186186
describe("when bookmarked", function () {
187187

188188
it("will use the nickname from the bookmark", mock.initConverse(
189-
null, ['rosterGroupsFetched'], {},
189+
['rosterGroupsFetched'], {},
190190
async function (done, _converse) {
191191

192192
await test_utils.waitUntilDiscoConfirmed(
@@ -211,7 +211,7 @@
211211
}));
212212

213213
it("displays that it's bookmarked through its bookmark icon", mock.initConverse(
214-
null, ['rosterGroupsFetched'], {},
214+
['rosterGroupsFetched'], {},
215215
async function (done, _converse) {
216216

217217
test_utils.waitUntilDiscoConfirmed(
@@ -239,7 +239,7 @@
239239
}));
240240

241241
it("can be unbookmarked", mock.initConverse(
242-
null, ['rosterGroupsFetched'], {},
242+
['rosterGroupsFetched'], {},
243243
async function (done, _converse) {
244244

245245
let sent_stanza, IQ_id;
@@ -317,7 +317,7 @@
317317
describe("and when autojoin is set", function () {
318318

319319
it("will be be opened and joined automatically upon login", mock.initConverse(
320-
null, ['rosterGroupsFetched'], {},
320+
['rosterGroupsFetched'], {},
321321
async function (done, _converse) {
322322

323323
await test_utils.waitUntilBookmarksReturned(_converse);
@@ -346,7 +346,7 @@
346346
describe("Bookmarks", function () {
347347

348348
it("can be pushed from the XMPP server", mock.initConverse(
349-
['send'], ['rosterGroupsFetched', 'connected'], {},
349+
['rosterGroupsFetched', 'connected'], {},
350350
async function (done, _converse) {
351351

352352
await test_utils.waitUntilDiscoConfirmed(
@@ -404,7 +404,7 @@
404404

405405

406406
it("can be retrieved from the XMPP server", mock.initConverse(
407-
null, ['chatBoxesFetched', 'roomsPanelRendered', 'rosterGroupsFetched'], {},
407+
['chatBoxesFetched', 'roomsPanelRendered', 'rosterGroupsFetched'], {},
408408
async function (done, _converse) {
409409

410410
await test_utils.waitUntilDiscoConfirmed(
@@ -482,7 +482,7 @@
482482
describe("The rooms panel", function () {
483483

484484
it("shows a list of bookmarks", mock.initConverse(
485-
null, ['rosterGroupsFetched'], {},
485+
['rosterGroupsFetched'], {},
486486
async function (done, _converse) {
487487

488488
await test_utils.waitUntilDiscoConfirmed(
@@ -558,7 +558,7 @@
558558

559559

560560
it("remembers the toggle state of the bookmarks list", mock.initConverse(
561-
null, ['rosterGroupsFetched'], {},
561+
['rosterGroupsFetched'], {},
562562
async function (done, _converse) {
563563

564564
test_utils.openControlBox();
@@ -614,7 +614,7 @@
614614
describe("When hide_open_bookmarks is true and a bookmarked room is opened", function () {
615615

616616
it("can be closed", mock.initConverse(
617-
null, ['rosterGroupsFetched'],
617+
['rosterGroupsFetched'],
618618
{ hide_open_bookmarks: true },
619619
async function (done, _converse) {
620620

0 commit comments

Comments
 (0)