Skip to content

Commit

Permalink
Fixed log-in-password.component.spec.ts - authService was used in the…
Browse files Browse the repository at this point in the history
… wrong way
  • Loading branch information
milanmajchrak committed Jan 22, 2024
1 parent 3498214 commit 4ce2ffa
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 },
Expand Down

0 comments on commit 4ce2ffa

Please sign in to comment.