68346: Routing back to edit-bitstreams page

This commit is contained in:
Kristof De Langhe
2020-03-25 16:15:58 +01:00
parent 74af325e45
commit 02526753e2
6 changed files with 53 additions and 8 deletions

View File

@@ -23,6 +23,7 @@ import { VarDirective } from '../../../shared/utils/var.directive';
import { Bitstream } from '../../../core/shared/bitstream.model';
import { BundleDataService } from '../../../core/data/bundle-data.service';
import { Bundle } from '../../../core/shared/bundle.model';
import { RequestService } from '../../../core/data/request.service';
describe('UploadBistreamComponent', () => {
let comp: UploadBitstreamComponent;
@@ -90,6 +91,9 @@ describe('UploadBistreamComponent', () => {
});
const notificationsServiceStub = new NotificationsServiceStub();
const uploaderComponent = jasmine.createSpyObj('uploaderComponent', ['ngOnInit']);
const requestService = jasmine.createSpyObj('requestService', {
removeByHrefSubstring: {}
});
describe('when a file is uploaded', () => {
beforeEach(async(() => {
@@ -211,7 +215,8 @@ describe('UploadBistreamComponent', () => {
{ provide: ItemDataService, useValue: mockItemDataService },
{ provide: NotificationsService, useValue: notificationsServiceStub },
{ provide: AuthService, useValue: authServiceStub },
{ provide: BundleDataService, useValue: bundleService }
{ provide: BundleDataService, useValue: bundleService },
{ provide: RequestService, useValue: requestService }
], schemas: [
NO_ERRORS_SCHEMA
]