test: update non-existent IDs format in bulk delete recording and room tests
This commit is contained in:
parent
99283ab63d
commit
f62e59168d
@ -30,7 +30,7 @@ describe('Recording API Tests', () => {
|
||||
it('should return 400 when mixed valid and non-existent IDs are provided', async () => {
|
||||
const testContext = await setupMultiRecordingsTestContext(3, 3, 3);
|
||||
const recordingIds = testContext.rooms.map((room) => room.recordingId!);
|
||||
const nonExistentIds = ['nonExistent--EG_000--1234', 'nonExistent--EG_111--5678'];
|
||||
const nonExistentIds = ['non_existent--EG_000--1234', 'non_existent--EG_111--5678'];
|
||||
const mixedIds = [...recordingIds, ...nonExistentIds];
|
||||
|
||||
const deleteResponse = await bulkDeleteRecordings(mixedIds);
|
||||
|
||||
@ -161,7 +161,7 @@ describe('Room API Tests', () => {
|
||||
setupSingleRoomWithRecording(true) // Room with recordings
|
||||
]);
|
||||
await endMeeting(room4.roomId, moderatorToken);
|
||||
const fakeRoomId = 'fakeRoomId'; // Non-existing room
|
||||
const fakeRoomId = 'fake_room-123'; // Non-existing room
|
||||
|
||||
const response = await bulkDeleteRooms(
|
||||
[room1.roomId, room2.roomId, room3.roomId, room4.roomId, fakeRoomId],
|
||||
@ -273,7 +273,7 @@ describe('Room API Tests', () => {
|
||||
});
|
||||
|
||||
it('should validate roomIds and return 422 when all are invalid', async () => {
|
||||
const response = await bulkDeleteRooms(['!!@##$', '!!@##$', ',', '.,-------}{¡$#<+']);
|
||||
const response = await bulkDeleteRooms(['!!@##$', '!!@##$', ',', '.,}{¡$#<+']);
|
||||
|
||||
expect(response.status).toBe(422);
|
||||
expect(response.body.error).toContain('Unprocessable Entity');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user