Skip to content

Commit

Permalink
The newly added ConfigurationDataService seemed to be missing in the …
Browse files Browse the repository at this point in the history
…unit test class (according to cryptic error message).
  • Loading branch information
Jean-François Morin committed Feb 22, 2024
1 parent f1cfe99 commit 5f41bc2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/menu.resolver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { cold } from 'jasmine-marbles';
import createSpy = jasmine.createSpy;
import { createSuccessfulRemoteDataObject$ } from './shared/remote-data.utils';
import { createPaginatedList } from './shared/testing/utils.test';
import { ConfigurationDataService } from './core/data/configuration-data.service';

const BOOLEAN = { t: true, f: false };
const MENU_STATE = {
Expand All @@ -37,6 +38,7 @@ describe('MenuResolver', () => {
let browseService;
let authorizationService;
let scriptService;
let configurationDataService;

beforeEach(waitForAsync(() => {
menuService = new MenuServiceStub();
Expand All @@ -52,6 +54,9 @@ describe('MenuResolver', () => {
scriptService = jasmine.createSpyObj('scriptService', {
scriptWithNameExistsAndCanExecute: observableOf(true)
});
configurationDataService = jasmine.createSpyObj('configurationDataService', {
scriptWithNameExistsAndCanExecute: observableOf(true)
});

TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), NoopAnimationsModule, RouterTestingModule],
Expand All @@ -61,6 +66,7 @@ describe('MenuResolver', () => {
{ provide: BrowseService, useValue: browseService },
{ provide: AuthorizationDataService, useValue: authorizationService },
{ provide: ScriptDataService, useValue: scriptService },
{ provide: ConfigurationDataService, useValue: configurationDataService },
{
provide: NgbModal, useValue: {
open: () => {/*comment*/
Expand Down

0 comments on commit 5f41bc2

Please sign in to comment.