mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Add another findByHref test
This commit is contained in:
@@ -57,6 +57,13 @@ describe('ResourcePolicyService', () => {
|
||||
});
|
||||
|
||||
describe('findByHref', () => {
|
||||
it('should configure the proper GetRequest', () => {
|
||||
scheduler.schedule(() => service.findByHref(requestURL));
|
||||
scheduler.flush();
|
||||
|
||||
expect(requestService.configure).toHaveBeenCalledWith(new GetRequest(requestUUID, requestURL, null), false);
|
||||
});
|
||||
|
||||
it('should return a RemoteData<ResourcePolicy> for the object with the given URL', () => {
|
||||
const result = service.findByHref(requestURL);
|
||||
const expected = cold('a', {
|
||||
|
Reference in New Issue
Block a user