Revert to original version

This commit is contained in:
Jean-François Morin
2024-02-22 17:00:55 -05:00
parent 5f41bc275a
commit 1c6216d40a

View File

@@ -19,7 +19,6 @@ import { cold } from 'jasmine-marbles';
import createSpy = jasmine.createSpy; import createSpy = jasmine.createSpy;
import { createSuccessfulRemoteDataObject$ } from './shared/remote-data.utils'; import { createSuccessfulRemoteDataObject$ } from './shared/remote-data.utils';
import { createPaginatedList } from './shared/testing/utils.test'; import { createPaginatedList } from './shared/testing/utils.test';
import { ConfigurationDataService } from './core/data/configuration-data.service';
const BOOLEAN = { t: true, f: false }; const BOOLEAN = { t: true, f: false };
const MENU_STATE = { const MENU_STATE = {
@@ -38,7 +37,6 @@ describe('MenuResolver', () => {
let browseService; let browseService;
let authorizationService; let authorizationService;
let scriptService; let scriptService;
let configurationDataService;
beforeEach(waitForAsync(() => { beforeEach(waitForAsync(() => {
menuService = new MenuServiceStub(); menuService = new MenuServiceStub();
@@ -54,9 +52,6 @@ describe('MenuResolver', () => {
scriptService = jasmine.createSpyObj('scriptService', { scriptService = jasmine.createSpyObj('scriptService', {
scriptWithNameExistsAndCanExecute: observableOf(true) scriptWithNameExistsAndCanExecute: observableOf(true)
}); });
configurationDataService = jasmine.createSpyObj('configurationDataService', {
scriptWithNameExistsAndCanExecute: observableOf(true)
});
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), NoopAnimationsModule, RouterTestingModule], imports: [TranslateModule.forRoot(), NoopAnimationsModule, RouterTestingModule],
@@ -66,7 +61,6 @@ describe('MenuResolver', () => {
{ provide: BrowseService, useValue: browseService }, { provide: BrowseService, useValue: browseService },
{ provide: AuthorizationDataService, useValue: authorizationService }, { provide: AuthorizationDataService, useValue: authorizationService },
{ provide: ScriptDataService, useValue: scriptService }, { provide: ScriptDataService, useValue: scriptService },
{ provide: ConfigurationDataService, useValue: configurationDataService },
{ {
provide: NgbModal, useValue: { provide: NgbModal, useValue: {
open: () => {/*comment*/ open: () => {/*comment*/