more tests for request service

This commit is contained in:
Art Lowel
2018-01-19 10:40:04 +01:00
parent 55bb142d3a
commit b771503cf7
5 changed files with 343 additions and 161 deletions

View File

@@ -1,7 +1,16 @@
import { ObjectCacheService } from '../../core/cache/object-cache.service';
export function initMockObjectCacheService(): ObjectCacheService {
return jasmine.createSpyObj('objectCacheService', {
hasBySelfLink: true,
});
return jasmine.createSpyObj('objectCacheService', [
'add',
'remove',
'getByUUID',
'getBySelfLink',
'getRequestHrefBySelfLink',
'getRequestHrefByUUID',
'getList',
'hasByUUID',
'hasBySelfLink'
]);
}