68346: Tests fixes

This commit is contained in:
Kristof De Langhe
2020-03-06 11:08:56 +01:00
parent cb21cd47bb
commit 4bbbc93f6c
9 changed files with 55 additions and 21 deletions

View File

@@ -31,7 +31,9 @@ describe('UploadBistreamComponent', () => {
const bundle = Object.assign(new Bundle(), {
id: 'bundle',
uuid: 'bundle',
self: 'bundle-selflink'
_links: {
self: { href: 'bundle-selflink' }
}
});
const itemName = 'fake-name';
const mockItem = Object.assign(new Item(), {
@@ -112,7 +114,7 @@ describe('UploadBistreamComponent', () => {
};
TestBed.configureTestingModule({
imports: [CommonModule, RouterTestingModule.withRoutes([]), TranslateModule.forRoot(), NgbModule.forRoot()],
imports: [CommonModule, RouterTestingModule.withRoutes([]), TranslateModule.forRoot(), NgbModule],
declarations: [UploadBitstreamComponent, VarDirective],
providers: [
{ provide: ActivatedRoute, useValue: routeStub },