Fixed tests

This commit is contained in:
Giuseppe
2018-07-27 14:35:33 +02:00
parent f1f11bcdaf
commit 9424116b41
10 changed files with 88 additions and 57 deletions

View File

@@ -88,10 +88,10 @@ export class Item extends DSpaceObject {
*/
getBitstreamsByBundleName(bundleName: string): Observable<Bitstream[]> {
return this.bitstreams
.filter((rd: RemoteData<Bitstream[]>) => rd.hasSucceeded)
.filter((rd: RemoteData<Bitstream[]>) => !rd.isResponsePending)
.map((rd: RemoteData<Bitstream[]>) => rd.payload)
.filter((bitstreams: Bitstream[]) => hasValue(bitstreams))
.first()
.take(1)
.startWith([])
.map((bitstreams) => {
return bitstreams