Commits

Giuseppe Digilio authored ee38de488c9
Added test for ResourcePoliciesComponent
No tags

src/app/shared/mocks/mock-resource-policy-service.ts

Added
1 +import { ResourcePolicyService } from '../../core/resource-policy/resource-policy.service';
2 +
3 +export function getMockResourcePolicyService(): ResourcePolicyService {
4 + return jasmine.createSpyObj('resourcePolicyService', {
5 + searchByResource: jasmine.createSpy('searchByResource'),
6 + create: jasmine.createSpy('create'),
7 + delete: jasmine.createSpy('delete'),
8 + update: jasmine.createSpy('update')
9 + });
10 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut