diff --git a/src/app/shared/log-in/container/log-in-container.component.spec.ts b/src/app/shared/log-in/container/log-in-container.component.spec.ts index 154e9041b5c..be4ae915ce3 100644 --- a/src/app/shared/log-in/container/log-in-container.component.spec.ts +++ b/src/app/shared/log-in/container/log-in-container.component.spec.ts @@ -23,6 +23,8 @@ import { RouterMock } from '../../mocks/router.mock'; import { createSuccessfulRemoteDataObject$ } from '../../remote-data.utils'; import { ConfigurationProperty } from '../../../core/shared/configuration-property.model'; import { ActivatedRoute, Router } from '@angular/router'; +import { CookieService } from '../../../core/services/cookie.service'; +import { CookieServiceMock } from '../../mocks/cookie.service.mock'; describe('LogInContainerComponent', () => { @@ -82,6 +84,7 @@ describe('LogInContainerComponent', () => { } } }, { provide: Router, useValue: new RouterMock() }, + { provide: CookieService, useClass: CookieServiceMock }, LogInContainerComponent ], schemas: [ diff --git a/src/app/shared/log-in/log-in.component.spec.ts b/src/app/shared/log-in/log-in.component.spec.ts index 3173ad8541c..e14c090db8a 100644 --- a/src/app/shared/log-in/log-in.component.spec.ts +++ b/src/app/shared/log-in/log-in.component.spec.ts @@ -28,6 +28,8 @@ import { ConfigurationDataService } from '../../core/data/configuration-data.ser import { createSuccessfulRemoteDataObject$ } from '../remote-data.utils'; import { ConfigurationProperty } from '../../core/shared/configuration-property.model'; import { RouterStub } from '../testing/router.stub'; +import { CookieService } from '../../core/services/cookie.service'; +import { CookieServiceMock } from '../mocks/cookie.service.mock'; describe('LogInComponent', () => { @@ -99,6 +101,7 @@ describe('LogInComponent', () => { { provide: ConfigurationDataService, useValue: configurationDataService }, provideMockStore({ initialState }), { provide: ThemeService, useValue: getMockThemeService() }, + { provide: CookieService, useClass: CookieServiceMock }, LogInComponent ], schemas: [ 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 cb26c715825..78a6af98522 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 @@ -23,6 +23,8 @@ import { ActivatedRoute , Router} from '@angular/router'; import { RouterMock } from '../../../mocks/router.mock'; import { createSuccessfulRemoteDataObject$ } from '../../../remote-data.utils'; import { ConfigurationProperty } from '../../../../core/shared/configuration-property.model'; +import { CookieService } from '../../../../core/services/cookie.service'; +import { CookieServiceMock } from '../../../mocks/cookie.service.mock'; describe('LogInPasswordComponent', () => { const uiUrl = 'localhost:4000'; @@ -99,6 +101,7 @@ describe('LogInPasswordComponent', () => { } } }, { provide: Router, useValue: new RouterMock() }, + { provide: CookieService, useClass: CookieServiceMock }, provideMockStore({ initialState }), ], schemas: [