Revert "tests: Update createRoom calls to use empty object for consistent parameter handling"
This reverts commit 57489189ecc39119852b7434dabf9f52d7c965a6.
This commit is contained in:
parent
fbe0868579
commit
955fb90194
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user