mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
[DURACOM-234] Switch to standalone bootstrapping API
This commit is contained in:
@@ -35,6 +35,7 @@ import {
|
||||
NativeWindowRef,
|
||||
NativeWindowService,
|
||||
} from './core/services/window.service';
|
||||
import { ThemedRootComponent } from './root/themed-root.component';
|
||||
import { HostWindowResizeAction } from './shared/host-window.actions';
|
||||
import { HostWindowService } from './shared/host-window.service';
|
||||
import { MenuService } from './shared/menu/menu.service';
|
||||
@@ -84,7 +85,6 @@ describe('App component', () => {
|
||||
},
|
||||
}),
|
||||
],
|
||||
declarations: [AppComponent], // declare the test component
|
||||
providers: [
|
||||
{ provide: NativeWindowService, useValue: new NativeWindowRef() },
|
||||
{ provide: MetadataService, useValue: new MetadataServiceMock() },
|
||||
@@ -109,7 +109,13 @@ describe('App component', () => {
|
||||
|
||||
// waitForAsync beforeEach
|
||||
beforeEach(waitForAsync(() => {
|
||||
return TestBed.configureTestingModule(getDefaultTestBedConf());
|
||||
return TestBed.configureTestingModule(getDefaultTestBedConf()).overrideComponent(
|
||||
AppComponent, {
|
||||
remove: {
|
||||
imports: [ ThemedRootComponent ],
|
||||
},
|
||||
},
|
||||
);
|
||||
}));
|
||||
|
||||
// synchronous beforeEach
|
||||
|
Reference in New Issue
Block a user