aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/vnfs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/vnfs')
-rw-r--r--src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts
index 07ccc39..d18ee0b 100644
--- a/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts
+++ b/src/app/vnfs/build-artifacts/reference-dataform/reference-dataform.util.spec.ts
@@ -55,4 +55,12 @@ describe('ReferenceDataFormUtil', () => {
expect(spy).toHaveBeenCalled();
expect(returnValue).toBe(false);
}));
+
+ it('should test checkResult function when status is 400', inject([ReferenceDataFormUtil], (service: ReferenceDataFormUtil) => {
+ let spy = spyOn(NotificationsService.prototype, 'success');
+ let result = {output: {status: { code: '400'}}};
+ let returnValue = service.checkResult(result);
+ expect(spy).toHaveBeenCalled();
+ expect(returnValue).toBe(true);
+ }));
});