tests: Update createRoom calls to use empty object for consistent parameter handling
This commit is contained in:
parent
0f9e3bcf0a
commit
57489189ec
@ -29,7 +29,7 @@ describe('Participant API Security Tests', () => {
|
|||||||
adminCookie = await loginUserAsRole(UserRole.ADMIN);
|
adminCookie = await loginUserAsRole(UserRole.ADMIN);
|
||||||
|
|
||||||
// Create a room and extract the roomId
|
// Create a room and extract the roomId
|
||||||
const room = await createRoom();
|
const room = await createRoom({});
|
||||||
roomId = room.roomId;
|
roomId = room.roomId;
|
||||||
|
|
||||||
// Extract the moderator and publisher secrets from the room
|
// 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 () => {
|
it('should fail when participant is moderator of a different room', async () => {
|
||||||
// Create a new room to get a different roomId
|
// Create a new room to get a different roomId
|
||||||
const newRoom = await createRoom();
|
const newRoom = await createRoom({});
|
||||||
const newRoomId = newRoom.roomId;
|
const newRoomId = newRoom.roomId;
|
||||||
|
|
||||||
// Extract the moderator secret and generate a participant token for the new room
|
// 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);
|
adminCookie = await loginUserAsRole(UserRole.ADMIN);
|
||||||
|
|
||||||
// Create a room and extract the roomId
|
// Create a room and extract the roomId
|
||||||
const room = await createRoom();
|
const room = await createRoom({});
|
||||||
roomId = room.roomId;
|
roomId = room.roomId;
|
||||||
recordingId = `${roomId}--recordingId--uid`;
|
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 () => {
|
it('should fail when participant is moderator of a different room', async () => {
|
||||||
// Create a new room to get a different roomId
|
// Create a new room to get a different roomId
|
||||||
const newRoom = await createRoom();
|
const newRoom = await createRoom({});
|
||||||
const newRoomId = newRoom.roomId;
|
const newRoomId = newRoom.roomId;
|
||||||
|
|
||||||
// Extract the moderator secret and generate a participant token for the new room
|
// 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 () => {
|
it('should fail when participant is moderator of a different room', async () => {
|
||||||
// Create a new room to get a different roomId
|
// Create a new room to get a different roomId
|
||||||
const newRoom = await createRoom();
|
const newRoom = await createRoom({});
|
||||||
const newRoomId = newRoom.roomId;
|
const newRoomId = newRoom.roomId;
|
||||||
|
|
||||||
// Extract the moderator secret and generate a participant token for the new room
|
// 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;
|
let roomId: string;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
const room = await createRoom();
|
const room = await createRoom({});
|
||||||
roomId = room.roomId;
|
roomId = room.roomId;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -159,7 +159,7 @@ describe('Room API Security Tests', () => {
|
|||||||
let publisherCookie: string;
|
let publisherCookie: string;
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const room = await createRoom();
|
const room = await createRoom({});
|
||||||
roomId = room.roomId;
|
roomId = room.roomId;
|
||||||
|
|
||||||
// Extract the room secrets and generate participant tokens, saved as cookies
|
// 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 () => {
|
it('should fail when participant is moderator of a different room', async () => {
|
||||||
// Create a new room to get a different roomId
|
// Create a new room to get a different roomId
|
||||||
const newRoom = await createRoom();
|
const newRoom = await createRoom({});
|
||||||
const newRoomId = newRoom.roomId;
|
const newRoomId = newRoom.roomId;
|
||||||
|
|
||||||
// Extract the moderator secret and generate a participant token for the new room
|
// 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;
|
let roomId: string;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
const room = await createRoom();
|
const room = await createRoom({});
|
||||||
roomId = room.roomId;
|
roomId = room.roomId;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -300,7 +300,7 @@ describe('Room API Security Tests', () => {
|
|||||||
let roomId: string;
|
let roomId: string;
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const room = await createRoom();
|
const room = await createRoom({});
|
||||||
roomId = room.roomId;
|
roomId = room.roomId;
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -331,7 +331,7 @@ describe('Room API Security Tests', () => {
|
|||||||
let moderatorSecret: string;
|
let moderatorSecret: string;
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const room = await createRoom();
|
const room = await createRoom({});
|
||||||
roomId = room.roomId;
|
roomId = room.roomId;
|
||||||
|
|
||||||
// Extract the moderator secret
|
// Extract the moderator secret
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user