From 4ce2ffae9701e46d7f3be47435e4d99be49fbaf4 Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Mon, 22 Jan 2024 09:13:22 +0100 Subject: [PATCH] Fixed log-in-password.component.spec.ts - authService was used in the wrong way --- .../log-in/methods/password/log-in-password.component.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/shared/log-in/methods/password/log-in-password.component.spec.ts b/src/app/shared/log-in/methods/password/log-in-password.component.spec.ts index 010492acfae..cb26c715825 100644 --- a/src/app/shared/log-in/methods/password/log-in-password.component.spec.ts +++ b/src/app/shared/log-in/methods/password/log-in-password.component.spec.ts @@ -10,7 +10,6 @@ import { TranslateModule } from '@ngx-translate/core'; import { LogInPasswordComponent } from './log-in-password.component'; import { authReducer } from '../../../../core/auth/auth.reducer'; import { AuthService } from '../../../../core/auth/auth.service'; -import { AuthServiceStub } from '../../../testing/auth-service.stub'; import { storeModuleConfig } from '../../../../app.reducer'; import { AuthMethod } from '../../../../core/auth/models/auth.method'; import { AuthMethodType } from '../../../../core/auth/models/auth.method-type'; @@ -84,7 +83,7 @@ describe('LogInPasswordComponent', () => { BrowserOnlyMockPipe, ], providers: [ - { provide: AuthService, useClass: AuthServiceStub }, + { provide: AuthService, useValue: authService }, { provide: AuthorizationDataService, useClass: AuthorizationDataServiceStub }, { provide: 'authMethodProvider', useValue: new AuthMethod(AuthMethodType.Password, 0) }, { provide: 'isStandalonePage', useValue: true },