tests: update import statements for INTERNAL_CONFIG to use named imports
This commit is contained in:
parent
7dd491e518
commit
cf30f61a11
@ -1,6 +1,6 @@
|
|||||||
import { expect } from '@jest/globals';
|
import { expect } from '@jest/globals';
|
||||||
import { container } from '../../src/config/dependency-injector.config';
|
import { container } from '../../src/config/dependency-injector.config';
|
||||||
import INTERNAL_CONFIG from '../../src/config/internal-config';
|
import { INTERNAL_CONFIG } from '../../src/config/internal-config';
|
||||||
import { TokenService } from '../../src/services';
|
import { TokenService } from '../../src/services';
|
||||||
import {
|
import {
|
||||||
MeetingEndAction,
|
MeetingEndAction,
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { Express } from 'express';
|
|||||||
import ms, { StringValue } from 'ms';
|
import ms, { StringValue } from 'ms';
|
||||||
import request, { Response } from 'supertest';
|
import request, { Response } from 'supertest';
|
||||||
import { container } from '../../src/config/index.js';
|
import { container } from '../../src/config/index.js';
|
||||||
import INTERNAL_CONFIG from '../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../src/config/internal-config.js';
|
||||||
import {
|
import {
|
||||||
LIVEKIT_API_KEY,
|
LIVEKIT_API_KEY,
|
||||||
LIVEKIT_API_SECRET,
|
LIVEKIT_API_SECRET,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from '@jest/globals';
|
import { afterEach, beforeAll, beforeEach, describe, expect, it } from '@jest/globals';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { AuthTransportMode, ParticipantRole } from '@openvidu-meet/typings';
|
import { AuthTransportMode, ParticipantRole } from '@openvidu-meet/typings';
|
||||||
import { expectValidationError, expectValidParticipantTokenResponse } from '../../../helpers/assertion-helpers.js';
|
import { expectValidationError, expectValidParticipantTokenResponse } from '../../../helpers/assertion-helpers.js';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { AuthTransportMode, ParticipantRole } from '@openvidu-meet/typings';
|
import { AuthTransportMode, ParticipantRole } from '@openvidu-meet/typings';
|
||||||
import { expectValidationError, expectValidParticipantTokenResponse } from '../../../helpers/assertion-helpers.js';
|
import { expectValidationError, expectValidParticipantTokenResponse } from '../../../helpers/assertion-helpers.js';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import {
|
|||||||
} from '../../../helpers/request-helpers.js';
|
} from '../../../helpers/request-helpers.js';
|
||||||
import { setupSingleRoomWithRecording } from '../../../helpers/test-scenarios.js';
|
import { setupSingleRoomWithRecording } from '../../../helpers/test-scenarios.js';
|
||||||
import { expectValidGetRecordingUrlResponse } from '../../../helpers/assertion-helpers.js';
|
import { expectValidGetRecordingUrlResponse } from '../../../helpers/assertion-helpers.js';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
|
|
||||||
describe('Recording API Tests', () => {
|
describe('Recording API Tests', () => {
|
||||||
let app: Express;
|
let app: Express;
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { EgressInfo, EgressStatus, Room } from 'livekit-server-sdk';
|
|||||||
import ms from 'ms';
|
import ms from 'ms';
|
||||||
import { Lock } from '@sesamecare-oss/redlock';
|
import { Lock } from '@sesamecare-oss/redlock';
|
||||||
import { container } from '../../../../src/config/index.js';
|
import { container } from '../../../../src/config/index.js';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { MeetLock } from '../../../../src/helpers/index.js';
|
import { MeetLock } from '../../../../src/helpers/index.js';
|
||||||
import {
|
import {
|
||||||
LiveKitService,
|
LiveKitService,
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, jest
|
|||||||
import { EgressInfo, EgressStatus, Room } from 'livekit-server-sdk';
|
import { EgressInfo, EgressStatus, Room } from 'livekit-server-sdk';
|
||||||
import ms from 'ms';
|
import ms from 'ms';
|
||||||
import { container } from '../../../../src/config/index.js';
|
import { container } from '../../../../src/config/index.js';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { MeetLock } from '../../../../src/helpers/index.js';
|
import { MeetLock } from '../../../../src/helpers/index.js';
|
||||||
import {
|
import {
|
||||||
LiveKitService,
|
LiveKitService,
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
|||||||
import { Express } from 'express';
|
import { Express } from 'express';
|
||||||
import ms from 'ms';
|
import ms from 'ms';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { MEET_INITIAL_API_KEY } from '../../../../src/environment.js';
|
import { MEET_INITIAL_API_KEY } from '../../../../src/environment.js';
|
||||||
import {
|
import {
|
||||||
MeetRecordingAccess,
|
MeetRecordingAccess,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { AuthTransportMode, MeetRecordingAccess, ParticipantRole} from '@openvidu-meet/typings';
|
import { AuthTransportMode, MeetRecordingAccess, ParticipantRole} from '@openvidu-meet/typings';
|
||||||
import { expectValidRecordingTokenResponse } from '../../../helpers/assertion-helpers.js';
|
import { expectValidRecordingTokenResponse } from '../../../helpers/assertion-helpers.js';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
|||||||
import { Express } from 'express';
|
import { Express } from 'express';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
import { container } from '../../../../src/config/dependency-injector.config.js';
|
import { container } from '../../../../src/config/dependency-injector.config.js';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { MeetStorageService } from '../../../../src/services/index.js';
|
import { MeetStorageService } from '../../../../src/services/index.js';
|
||||||
import { expectValidationError } from '../../../helpers/assertion-helpers.js';
|
import { expectValidationError } from '../../../helpers/assertion-helpers.js';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { beforeAll, describe, expect, it } from '@jest/globals';
|
|||||||
import { Express } from 'express';
|
import { Express } from 'express';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
import { container } from '../../../../src/config/dependency-injector.config.js';
|
import { container } from '../../../../src/config/dependency-injector.config.js';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { MEET_INITIAL_API_KEY } from '../../../../src/environment.js';
|
import { MEET_INITIAL_API_KEY } from '../../../../src/environment.js';
|
||||||
import { MeetStorageService } from '../../../../src/services/index.js';
|
import { MeetStorageService } from '../../../../src/services/index.js';
|
||||||
import { AuthMode, AuthTransportMode, AuthType, MeetRoomThemeMode } from '@openvidu-meet/typings';
|
import { AuthMode, AuthTransportMode, AuthType, MeetRoomThemeMode } from '@openvidu-meet/typings';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { afterAll, beforeAll, beforeEach, describe, expect, it } from '@jest/globals';
|
import { afterAll, beforeAll, beforeEach, describe, expect, it } from '@jest/globals';
|
||||||
import { Express } from 'express';
|
import { Express } from 'express';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { LIVEKIT_URL, MEET_INITIAL_API_KEY } from '../../../../src/environment.js';
|
import { LIVEKIT_URL, MEET_INITIAL_API_KEY } from '../../../../src/environment.js';
|
||||||
import { AuthTransportMode, MeetTokenMetadata, ParticipantRole } from '@openvidu-meet/typings';
|
import { AuthTransportMode, MeetTokenMetadata, ParticipantRole } from '@openvidu-meet/typings';
|
||||||
import { getPermissions } from '../../../helpers/assertion-helpers.js';
|
import { getPermissions } from '../../../helpers/assertion-helpers.js';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
||||||
import { Express } from 'express';
|
import { Express } from 'express';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { AuthMode, AuthTransportMode } from '@openvidu-meet/typings';
|
import { AuthMode, AuthTransportMode } from '@openvidu-meet/typings';
|
||||||
import {
|
import {
|
||||||
changeAuthTransportMode,
|
changeAuthTransportMode,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
import { afterAll, beforeAll, describe, expect, it } from '@jest/globals';
|
||||||
import { Express } from 'express';
|
import { Express } from 'express';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { MEET_INITIAL_API_KEY } from '../../../../src/environment.js';
|
import { MEET_INITIAL_API_KEY } from '../../../../src/environment.js';
|
||||||
import { AuthTransportMode, MeetRecordingAccess, ParticipantRole } from '@openvidu-meet/typings';
|
import { AuthTransportMode, MeetRecordingAccess, ParticipantRole } from '@openvidu-meet/typings';
|
||||||
import { expectValidStopRecordingResponse } from '../../../helpers/assertion-helpers.js';
|
import { expectValidStopRecordingResponse } from '../../../helpers/assertion-helpers.js';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { afterAll, beforeAll, beforeEach, describe, expect, it } from '@jest/globals';
|
import { afterAll, beforeAll, beforeEach, describe, expect, it } from '@jest/globals';
|
||||||
import { Express } from 'express';
|
import { Express } from 'express';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { MEET_INITIAL_API_KEY } from '../../../../src/environment.js';
|
import { MEET_INITIAL_API_KEY } from '../../../../src/environment.js';
|
||||||
import { AuthMode, AuthTransportMode, MeetRecordingAccess, ParticipantRole } from '@openvidu-meet/typings';
|
import { AuthMode, AuthTransportMode, MeetRecordingAccess, ParticipantRole } from '@openvidu-meet/typings';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { beforeAll, describe, expect, it } from '@jest/globals';
|
import { beforeAll, describe, expect, it } from '@jest/globals';
|
||||||
import { Express } from 'express';
|
import { Express } from 'express';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
import INTERNAL_CONFIG from '../../../../src/config/internal-config.js';
|
import { INTERNAL_CONFIG } from '../../../../src/config/internal-config.js';
|
||||||
import { MEET_INITIAL_ADMIN_PASSWORD } from '../../../../src/environment.js';
|
import { MEET_INITIAL_ADMIN_PASSWORD } from '../../../../src/environment.js';
|
||||||
import { AuthTransportMode } from '@openvidu-meet/typings';
|
import { AuthTransportMode } from '@openvidu-meet/typings';
|
||||||
import {
|
import {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user