mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
fix issue where beforeEach wouldn't wait for dropBitstream to end
This commit is contained in:
@@ -191,15 +191,15 @@ describe('ItemBitstreamsComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('when dropBitstream is called', () => {
|
describe('when dropBitstream is called', () => {
|
||||||
const event = {
|
beforeEach((done) => {
|
||||||
|
comp.dropBitstream(bundle, {
|
||||||
fromIndex: 0,
|
fromIndex: 0,
|
||||||
toIndex: 50,
|
toIndex: 50,
|
||||||
// tslint:disable-next-line:no-empty
|
// tslint:disable-next-line:no-empty
|
||||||
finish: () => {}
|
finish: () => {
|
||||||
};
|
done();
|
||||||
|
}
|
||||||
beforeEach(() => {
|
})
|
||||||
comp.dropBitstream(bundle, event);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should send out a patch for the move operation', () => {
|
it('should send out a patch for the move operation', () => {
|
||||||
|
@@ -11,7 +11,7 @@ export function getMockRequestService(requestEntry$: Observable<RequestEntry> =
|
|||||||
getByUUID: requestEntry$,
|
getByUUID: requestEntry$,
|
||||||
uriEncodeBody: jasmine.createSpy('uriEncodeBody'),
|
uriEncodeBody: jasmine.createSpy('uriEncodeBody'),
|
||||||
isCachedOrPending: false,
|
isCachedOrPending: false,
|
||||||
removeByHrefSubstring: jasmine.createSpy('removeByHrefSubstring').and.returnValue(observableOf(true)),
|
removeByHrefSubstring: observableOf(true),
|
||||||
hasByHrefObservable: observableOf(false)
|
hasByHrefObservable: observableOf(false)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user