From 955fb90194460f6393e1f83f64b046e683fe7790 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Fri, 11 Apr 2025 12:17:20 +0200 Subject: [PATCH] Revert "tests: Update createRoom calls to use empty object for consistent parameter handling" This reverts commit 57489189ecc39119852b7434dabf9f52d7c965a6. --- .../api/security/participant-security.test.ts | 4 ++-- .../api/security/recording-security.test.ts | 6 +++--- .../integration/api/security/room-security.test.ts | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/backend/tests/integration/api/security/participant-security.test.ts b/backend/tests/integration/api/security/participant-security.test.ts index e6e6e00..3c20061 100644 --- a/backend/tests/integration/api/security/participant-security.test.ts +++ b/backend/tests/integration/api/security/participant-security.test.ts @@ -29,7 +29,7 @@ describe('Participant API Security Tests', () => { adminCookie = await loginUserAsRole(UserRole.ADMIN); // Create a room and extract the roomId - const room = await createRoom({}); + const room = await createRoom(); roomId = room.roomId; // Extract the moderator and publisher secrets from the room @@ -286,7 +286,7 @@ describe('Participant API Security Tests', () => { it('should fail when participant is moderator of a different room', async () => { // Create a new room to get a different roomId - const newRoom = await createRoom({}); + const newRoom = await createRoom(); const newRoomId = newRoom.roomId; // Extract the moderator secret and generate a participant token for the new room diff --git a/backend/tests/integration/api/security/recording-security.test.ts b/backend/tests/integration/api/security/recording-security.test.ts index cb989a7..01f6d8d 100644 --- a/backend/tests/integration/api/security/recording-security.test.ts +++ b/backend/tests/integration/api/security/recording-security.test.ts @@ -37,7 +37,7 @@ describe('Room API Security Tests', () => { adminCookie = await loginUserAsRole(UserRole.ADMIN); // Create a room and extract the roomId - const room = await createRoom({}); + const room = await createRoom(); roomId = room.roomId; recordingId = `${roomId}--recordingId--uid`; @@ -66,7 +66,7 @@ describe('Room API Security Tests', () => { it('should fail when participant is moderator of a different room', async () => { // Create a new room to get a different roomId - const newRoom = await createRoom({}); + const newRoom = await createRoom(); const newRoomId = newRoom.roomId; // Extract the moderator secret and generate a participant token for the new room @@ -105,7 +105,7 @@ describe('Room API Security Tests', () => { it('should fail when participant is moderator of a different room', async () => { // Create a new room to get a different roomId - const newRoom = await createRoom({}); + const newRoom = await createRoom(); const newRoomId = newRoom.roomId; // Extract the moderator secret and generate a participant token for the new room diff --git a/backend/tests/integration/api/security/room-security.test.ts b/backend/tests/integration/api/security/room-security.test.ts index 045b34f..05bd0ef 100644 --- a/backend/tests/integration/api/security/room-security.test.ts +++ b/backend/tests/integration/api/security/room-security.test.ts @@ -122,7 +122,7 @@ describe('Room API Security Tests', () => { let roomId: string; beforeEach(async () => { - const room = await createRoom({}); + const room = await createRoom(); roomId = room.roomId; }); @@ -159,7 +159,7 @@ describe('Room API Security Tests', () => { let publisherCookie: string; beforeAll(async () => { - const room = await createRoom({}); + const room = await createRoom(); roomId = room.roomId; // Extract the room secrets and generate participant tokens, saved as cookies @@ -195,7 +195,7 @@ describe('Room API Security Tests', () => { it('should fail when participant is moderator of a different room', async () => { // Create a new room to get a different roomId - const newRoom = await createRoom({}); + const newRoom = await createRoom(); const newRoomId = newRoom.roomId; // Extract the moderator secret and generate a participant token for the new room @@ -265,7 +265,7 @@ describe('Room API Security Tests', () => { let roomId: string; beforeEach(async () => { - const room = await createRoom({}); + const room = await createRoom(); roomId = room.roomId; }); @@ -300,7 +300,7 @@ describe('Room API Security Tests', () => { let roomId: string; beforeAll(async () => { - const room = await createRoom({}); + const room = await createRoom(); roomId = room.roomId; }); @@ -331,7 +331,7 @@ describe('Room API Security Tests', () => { let moderatorSecret: string; beforeAll(async () => { - const room = await createRoom({}); + const room = await createRoom(); roomId = room.roomId; // Extract the moderator secret