mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +00:00
115046: Fixed failing tests & added new test to cover added code
(cherry picked from commit 479adf6519
)
This commit is contained in:
@@ -4,12 +4,19 @@ import {
|
||||
} from 'rxjs';
|
||||
|
||||
import { CacheableObject } from '../../core/cache/cacheable-object.model';
|
||||
import { RemoteData } from '../../core/data/remote-data';
|
||||
import { createSuccessfulRemoteDataObject$ } from '../remote-data.utils';
|
||||
import { FollowLinkConfig } from '../utils/follow-link-config.model';
|
||||
|
||||
/**
|
||||
* Stub class for {@link BaseDataService}
|
||||
*/
|
||||
export abstract class BaseDataServiceStub<T extends CacheableObject> {
|
||||
|
||||
findByHref(_href$: string | Observable<string>, _useCachedVersionIfAvailable = true, _reRequestOnStale = true, ..._linksToFollow: FollowLinkConfig<T>[]): Observable<RemoteData<T>> {
|
||||
return createSuccessfulRemoteDataObject$(undefined);
|
||||
}
|
||||
|
||||
invalidateByHref(_href: string): Observable<boolean> {
|
||||
return observableOf(true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user