From a2aa400a715cf2260b11b3b9b89e97d3808bbfaf Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Wed, 23 Apr 2025 14:26:38 +0200 Subject: [PATCH] tests: fixed typos --- .../integration/api/rooms/bulk-delete-rooms.test.ts | 1 - .../tests/integration/api/rooms/create-room.test.ts | 9 +-------- .../tests/integration/api/rooms/delete-room.test.ts | 1 - .../integration/api/rooms/garbage-collector.test.ts | 1 - .../tests/integration/api/rooms/get-room.test.ts | 6 ++---- .../tests/integration/api/rooms/update-room.test.ts | 13 ++----------- backend/tests/integration/api/security/auth.test.ts | 6 ++---- .../api/security/meeting-security.test.ts | 3 +-- .../api/security/participant-security.test.ts | 3 +-- .../api/security/recording-security.test.ts | 4 +--- .../integration/api/security/room-security.test.ts | 3 +-- 11 files changed, 11 insertions(+), 39 deletions(-) diff --git a/backend/tests/integration/api/rooms/bulk-delete-rooms.test.ts b/backend/tests/integration/api/rooms/bulk-delete-rooms.test.ts index 84d2fdb..2283f48 100644 --- a/backend/tests/integration/api/rooms/bulk-delete-rooms.test.ts +++ b/backend/tests/integration/api/rooms/bulk-delete-rooms.test.ts @@ -3,7 +3,6 @@ import { createRoom, deleteAllRooms, startTestServer, - , getRoom, joinFakeParticipant, disconnectFakeParticipants, diff --git a/backend/tests/integration/api/rooms/create-room.test.ts b/backend/tests/integration/api/rooms/create-room.test.ts index 6e6b5df..2063817 100644 --- a/backend/tests/integration/api/rooms/create-room.test.ts +++ b/backend/tests/integration/api/rooms/create-room.test.ts @@ -1,13 +1,7 @@ import request from 'supertest'; import { describe, it, expect, beforeAll, afterAll } from '@jest/globals'; import { Express } from 'express'; -import { - createRoom, - deleteAllRooms, - loginUserAsRole, - startTestServer, - -} from '../../../utils/helpers.js'; +import { createRoom, deleteAllRooms, loginUserAsRole, startTestServer } from '../../../utils/helpers.js'; import { UserRole } from '../../../../src/typings/ce/user.js'; import INTERNAL_CONFIG from '../../../../src/config/internal-config.js'; import ms from 'ms'; @@ -28,7 +22,6 @@ describe('Room API Tests', () => { afterAll(async () => { await deleteAllRooms(); - }); describe('Room Creation Tests', () => { diff --git a/backend/tests/integration/api/rooms/delete-room.test.ts b/backend/tests/integration/api/rooms/delete-room.test.ts index cab7d5d..5116b58 100644 --- a/backend/tests/integration/api/rooms/delete-room.test.ts +++ b/backend/tests/integration/api/rooms/delete-room.test.ts @@ -3,7 +3,6 @@ import { createRoom, deleteAllRooms, startTestServer, - , getRoom, deleteRoom, joinFakeParticipant, diff --git a/backend/tests/integration/api/rooms/garbage-collector.test.ts b/backend/tests/integration/api/rooms/garbage-collector.test.ts index 10f32a2..914d18b 100644 --- a/backend/tests/integration/api/rooms/garbage-collector.test.ts +++ b/backend/tests/integration/api/rooms/garbage-collector.test.ts @@ -3,7 +3,6 @@ import { createRoom, deleteAllRooms, startTestServer, - , getRoom, sleep, joinFakeParticipant, diff --git a/backend/tests/integration/api/rooms/get-room.test.ts b/backend/tests/integration/api/rooms/get-room.test.ts index 09d268d..deab819 100644 --- a/backend/tests/integration/api/rooms/get-room.test.ts +++ b/backend/tests/integration/api/rooms/get-room.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect, beforeAll, afterAll, afterEach } from '@jest/globals'; -import { createRoom, deleteAllRooms, startTestServer, , getRoom } from '../../../utils/helpers.js'; +import { createRoom, deleteAllRooms, startTestServer, getRoom } from '../../../utils/helpers.js'; import ms from 'ms'; import { expectSuccessRoomResponse, @@ -13,9 +13,7 @@ describe('Room API Tests', () => { startTestServer(); }); - afterAll(async () => { - - }); + afterAll(async () => {}); afterEach(async () => { // Remove all rooms created diff --git a/backend/tests/integration/api/rooms/update-room.test.ts b/backend/tests/integration/api/rooms/update-room.test.ts index 980a2d3..1a82885 100644 --- a/backend/tests/integration/api/rooms/update-room.test.ts +++ b/backend/tests/integration/api/rooms/update-room.test.ts @@ -1,21 +1,12 @@ import { describe, it, expect, beforeAll, afterAll, afterEach } from '@jest/globals'; -import { - createRoom, - deleteAllRooms, - startTestServer, - , - getRoom, - updateRoomPreferences -} from '../../../utils/helpers.js'; +import { createRoom, deleteAllRooms, startTestServer, getRoom, updateRoomPreferences } from '../../../utils/helpers.js'; describe('Room API Tests', () => { beforeAll(async () => { startTestServer(); }); - afterAll(async () => { - - }); + afterAll(async () => {}); afterEach(async () => { // Remove all rooms created diff --git a/backend/tests/integration/api/security/auth.test.ts b/backend/tests/integration/api/security/auth.test.ts index c5b2c34..bfe30d4 100644 --- a/backend/tests/integration/api/security/auth.test.ts +++ b/backend/tests/integration/api/security/auth.test.ts @@ -1,7 +1,7 @@ import request from 'supertest'; import { describe, it, expect, beforeAll, afterAll } from '@jest/globals'; import { Express } from 'express'; -import { loginUserAsRole, startTestServer, } from '../../../utils/helpers.js'; +import { loginUserAsRole, startTestServer } from '../../../utils/helpers.js'; import INTERNAL_CONFIG from '../../../../src/config/internal-config.js'; import { UserRole } from '../../../../src/typings/ce/index.js'; @@ -14,9 +14,7 @@ describe('Authentication API Tests', () => { app = startTestServer(); }); - afterAll(async () => { - - }); + afterAll(async () => {}); describe('Login Tests', () => { it('should successfully login with valid credentials', async () => { diff --git a/backend/tests/integration/api/security/meeting-security.test.ts b/backend/tests/integration/api/security/meeting-security.test.ts index 55f2781..c32377b 100644 --- a/backend/tests/integration/api/security/meeting-security.test.ts +++ b/backend/tests/integration/api/security/meeting-security.test.ts @@ -1,7 +1,7 @@ import request from 'supertest'; import { describe, it, expect, beforeAll, afterAll } from '@jest/globals'; import { Express } from 'express'; -import { createRoom, generateParticipantToken, startTestServer, } from '../../../utils/helpers.js'; +import { createRoom, generateParticipantToken, startTestServer } from '../../../utils/helpers.js'; import { UserRole } from '../../../../src/typings/ce/index.js'; import INTERNAL_CONFIG from '../../../../src/config/internal-config.js'; import { MeetRoomHelper } from '../../../../src/helpers/room.helper.js'; @@ -35,7 +35,6 @@ describe('Meeting API Security Tests', () => { afterAll(async () => { await deleteAllRooms(); - }, 20000); describe('End Meeting Tests', () => { diff --git a/backend/tests/integration/api/security/participant-security.test.ts b/backend/tests/integration/api/security/participant-security.test.ts index 637396a..32ec65e 100644 --- a/backend/tests/integration/api/security/participant-security.test.ts +++ b/backend/tests/integration/api/security/participant-security.test.ts @@ -1,7 +1,7 @@ import request from 'supertest'; import { describe, it, expect, beforeAll, afterAll } from '@jest/globals'; import { Express } from 'express'; -import { createRoom, startTestServer, } from '../../../utils/helpers.js'; +import { createRoom, startTestServer } from '../../../utils/helpers.js'; import { AuthMode, UserRole } from '../../../../src/typings/ce/index.js'; import INTERNAL_CONFIG from '../../../../src/config/internal-config.js'; import { MeetRoomHelper } from '../../../../src/helpers/room.helper.js'; @@ -38,7 +38,6 @@ describe('Participant API Security Tests', () => { afterAll(async () => { await deleteAllRooms(); - }, 20000); describe('Generate Participant Token Tests', () => { diff --git a/backend/tests/integration/api/security/recording-security.test.ts b/backend/tests/integration/api/security/recording-security.test.ts index 6e528a0..1372616 100644 --- a/backend/tests/integration/api/security/recording-security.test.ts +++ b/backend/tests/integration/api/security/recording-security.test.ts @@ -6,8 +6,7 @@ import { deleteAllRooms, generateParticipantToken, loginUserAsRole, - startTestServer, - + startTestServer } from '../../../utils/helpers.js'; import { MEET_API_KEY } from '../../../../src/environment.js'; import INTERNAL_CONFIG from '../../../../src/config/internal-config.js'; @@ -49,7 +48,6 @@ describe('Recording API Security Tests', () => { afterAll(async () => { await deleteAllRooms(); - }, 20000); describe('Start Recording Tests', () => { diff --git a/backend/tests/integration/api/security/room-security.test.ts b/backend/tests/integration/api/security/room-security.test.ts index 8658477..2d0569f 100644 --- a/backend/tests/integration/api/security/room-security.test.ts +++ b/backend/tests/integration/api/security/room-security.test.ts @@ -1,7 +1,7 @@ import request from 'supertest'; import { describe, it, expect, beforeAll, beforeEach, afterAll } from '@jest/globals'; import { Express } from 'express'; -import { createRoom, generateParticipantToken, startTestServer, } from '../../../utils/helpers.js'; +import { createRoom, generateParticipantToken, startTestServer } from '../../../utils/helpers.js'; import { AuthMode, UserRole } from '../../../../src/typings/ce/index.js'; import { MEET_API_KEY } from '../../../../src/environment.js'; import INTERNAL_CONFIG from '../../../../src/config/internal-config.js'; @@ -26,7 +26,6 @@ describe('Room API Security Tests', () => { afterAll(async () => { await deleteAllRooms(); - }, 20000); describe('Create Room Tests', () => {