[CST-5674] fix test

This commit is contained in:
Davide Negretti
2022-05-20 17:24:05 +02:00
parent 51bbbb697e
commit d2e881eba3

View File

@@ -254,6 +254,8 @@ describe('ResourcePolicyFormComponent test suite', () => {
}); });
it('should init form model properly', () => { it('should init form model properly', () => {
epersonService.findByHref.and.returnValue(observableOf(undefined));
groupService.findByHref.and.returnValue(observableOf(undefined));
spyOn(compAsAny, 'isFormValid').and.returnValue(observableOf(false)); spyOn(compAsAny, 'isFormValid').and.returnValue(observableOf(false));
spyOn(compAsAny, 'initModelsValue').and.callThrough(); spyOn(compAsAny, 'initModelsValue').and.callThrough();
spyOn(compAsAny, 'buildResourcePolicyForm').and.callThrough(); spyOn(compAsAny, 'buildResourcePolicyForm').and.callThrough();