mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
feat: fix LogInPasswordComponent test
This commit is contained in:
@@ -20,14 +20,17 @@ import { AuthorizationDataService } from '../../../../core/data/feature-authoriz
|
|||||||
import { AuthorizationDataServiceStub } from '../../../testing/authorization-service.stub';
|
import { AuthorizationDataServiceStub } from '../../../testing/authorization-service.stub';
|
||||||
import { ActivatedRouteStub } from '../../../testing/active-router.stub';
|
import { ActivatedRouteStub } from '../../../testing/active-router.stub';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
import { getMockThemeService } from '../../../mocks/theme-service.mock';
|
||||||
|
import { ThemeService } from '../../../theme-support/theme.service';
|
||||||
|
|
||||||
describe('LogInPasswordComponent', () => {
|
fdescribe('LogInPasswordComponent', () => {
|
||||||
|
|
||||||
let component: LogInPasswordComponent;
|
let component: LogInPasswordComponent;
|
||||||
let fixture: ComponentFixture<LogInPasswordComponent>;
|
let fixture: ComponentFixture<LogInPasswordComponent>;
|
||||||
let page: Page;
|
let page: Page;
|
||||||
let initialState: any;
|
let initialState: any;
|
||||||
let hardRedirectService: HardRedirectService;
|
let hardRedirectService: HardRedirectService;
|
||||||
|
let themeService = getMockThemeService();
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
hardRedirectService = jasmine.createSpyObj('hardRedirectService', {
|
hardRedirectService = jasmine.createSpyObj('hardRedirectService', {
|
||||||
@@ -65,6 +68,7 @@ describe('LogInPasswordComponent', () => {
|
|||||||
{ provide: 'isStandalonePage', useValue: true },
|
{ provide: 'isStandalonePage', useValue: true },
|
||||||
{ provide: HardRedirectService, useValue: hardRedirectService },
|
{ provide: HardRedirectService, useValue: hardRedirectService },
|
||||||
{ provide: ActivatedRoute, useValue: new ActivatedRouteStub() },
|
{ provide: ActivatedRoute, useValue: new ActivatedRouteStub() },
|
||||||
|
{ provide: ThemeService, useValue: themeService },
|
||||||
provideMockStore({ initialState }),
|
provideMockStore({ initialState }),
|
||||||
],
|
],
|
||||||
schemas: [
|
schemas: [
|
||||||
|
Reference in New Issue
Block a user