Skip to content

Commit 3de8e2b

Browse files
[LM-46] broken test fix
1 parent 945309a commit 3de8e2b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/app/menu.resolver.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { createPaginatedList } from './shared/testing/utils.test';
2020
import { SectionDataService } from './core/layout/section-data.service';
2121
import createSpy = jasmine.createSpy;
2222
import { ConfigurationDataService } from './core/data/configuration-data.service';
23+
import { HardRedirectService } from './core/services/hard-redirect.service';
2324

2425
const BOOLEAN = { t: true, f: false };
2526
const 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

Comments
 (0)