Skip to content

Commit cd3251c

Browse files
committed
remove unnecassary params
1 parent 194f707 commit cd3251c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/matrix/tests/room-creation.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ test.describe('Room creation', () => {
186186

187187
test('it can delete a room', async ({ page }) => {
188188
await login(page, 'user1', 'pass');
189-
let roomsBeforeDeletion = await getRoomsFromSync('user1', 'pass');
189+
let roomsBeforeDeletion = await getRoomsFromSync();
190190

191191
let room1 = await getRoomName(page);
192192
await sendMessage(page, room1, 'Room 1');
@@ -226,12 +226,12 @@ test.describe('Room creation', () => {
226226
await assertRooms(page, [newRoom]);
227227

228228
// For asserting the result of the forget matrix API
229-
let roomsAfterDeletion = await getRoomsFromSync('user1', 'pass');
229+
let roomsAfterDeletion = await getRoomsFromSync();
230230
let roomsAfterDeletionKeys = Object.keys(roomsAfterDeletion.join);
231231
let roomsBeforeDeletionKeys = Object.keys(roomsBeforeDeletion.join);
232232
expect(roomsAfterDeletionKeys.length).toEqual(roomsBeforeDeletionKeys.length);
233233
expect(roomsAfterDeletionKeys[0]).toEqual(roomsBeforeDeletionKeys[0]); // Existing room
234-
expect(roomsAfterDeletionKeys[1]).not.toEqual(roomsBeforeDeletion[2]); // The new room after deletion
234+
expect(roomsAfterDeletionKeys[1]).not.toEqual(roomsBeforeDeletion[2]); // The new room after deletions
235235
});
236236

237237
test('it can cancel deleting a room', async ({ page }) => {

0 commit comments

Comments
 (0)