Skip to content

Commit b64a23b

Browse files
committed
fix: rooms.delete tests
1 parent 9860f8a commit b64a23b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • apps/meteor/tests/end-to-end/api

apps/meteor/tests/end-to-end/api/rooms.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,25 +2390,23 @@ describe('[Rooms]', () => {
23902390
let testTeam: ITeam;
23912391
let testUser: IUser;
23922392
let testUser2: IUser;
2393-
let userCredentials: Credentials;
23942393

23952394
before('create channel and team', async () => {
23962395
testUser = await createUser();
23972396
testUser2 = await createUser();
2398-
userCredentials = await login(testUser.username, password);
23992397

24002398
const {
24012399
body: { channel },
24022400
} = await createRoom({ type: 'c', name: `channel.test.${Date.now()}-${Math.random()}` });
24032401
testChannel = channel;
2404-
testTeam = await createTeam(userCredentials, `team.test.${Date.now()}-${Math.random()}`, TeamType.PUBLIC, [
2402+
testTeam = await createTeam(credentials, `team.test.${Date.now()}-${Math.random()}`, TeamType.PUBLIC, [
24052403
testUser.username as string,
24062404
testUser2.username as string,
24072405
]);
24082406
});
24092407

24102408
after('delete channel and team', async () => {
2411-
await deleteTeam(userCredentials, testTeam.name);
2409+
await deleteTeam(credentials, testTeam.name);
24122410
await deleteRoom({ type: 'c', roomId: testChannel._id });
24132411
});
24142412

0 commit comments

Comments
 (0)