@@ -20,6 +20,7 @@ import { createPaginatedList } from './shared/testing/utils.test';
2020import { SectionDataService } from './core/layout/section-data.service' ;
2121import createSpy = jasmine . createSpy ;
2222import { ConfigurationDataService } from './core/data/configuration-data.service' ;
23+ import { HardRedirectService } from './core/services/hard-redirect.service' ;
2324
2425const BOOLEAN = { t : true , f : false } ;
2526const MENU_STATE = {
@@ -70,6 +71,7 @@ describe('MenuResolver', () => {
7071 let authorizationService ;
7172 let scriptService ;
7273 let configService ;
74+ let hardRedirectService ;
7375
7476 beforeEach ( waitForAsync ( ( ) => {
7577 menuService = new MenuServiceStub ( ) ;
@@ -89,6 +91,10 @@ describe('MenuResolver', () => {
8991 findByPropertyName : observableOf ( { } )
9092 } ) ;
9193
94+ hardRedirectService = jasmine . createSpyObj ( 'HardRedirectService' , {
95+ redirect : observableOf ( { } )
96+ } ) ;
97+
9298 TestBed . configureTestingModule ( {
9399 imports : [ TranslateModule . forRoot ( ) , NoopAnimationsModule , RouterTestingModule ] ,
94100 declarations : [ AdminSidebarComponent ] ,
@@ -98,6 +104,7 @@ describe('MenuResolver', () => {
98104 { provide : AuthorizationDataService , useValue : authorizationService } ,
99105 { provide : ScriptDataService , useValue : scriptService } ,
100106 { provide : ConfigurationDataService , useValue : configService } ,
107+ { provide : HardRedirectService , useValue : hardRedirectService } ,
101108 {
102109 provide : NgbModal , useValue : {
103110 open : ( ) => { /*comment*/
0 commit comments