diff --git a/src/modules/authentication/api/authentication.controller.integration-spec.ts b/src/modules/authentication/api/authentication.controller.integration-spec.ts index 9a99ba4b3..2e094e8e7 100644 --- a/src/modules/authentication/api/authentication.controller.integration-spec.ts +++ b/src/modules/authentication/api/authentication.controller.integration-spec.ts @@ -40,7 +40,7 @@ describe('AuthenticationController', () => { let rolleRepoMock: DeepMocked; const keycloakUserServiceMock: DeepMocked = createMock(); let keyCloakConfig: KeycloakConfig; - let personTimeLimitServiceMock: DeepMocked; + const personTimeLimitServiceMock: DeepMocked = createMock(); beforeAll(async () => { module = await Test.createTestingModule({ imports: [ @@ -80,7 +80,7 @@ describe('AuthenticationController', () => { }, { provide: PersonTimeLimitService, - useValue: createMock(), + useValue: personTimeLimitServiceMock, }, ], }).compile(); @@ -95,7 +95,6 @@ describe('AuthenticationController', () => { dbiamPersonenkontextRepoMock = module.get(DBiamPersonenkontextRepo); organisationRepoMock = module.get(OrganisationRepository); rolleRepoMock = module.get(RolleRepo); - personTimeLimitServiceMock = module.get(PersonTimeLimitService); }); afterEach(() => {