Wrote test case to test and cover checkResult function when status code
is 400
Issue-ID: APPC-1064
Change-Id: Ic951f3b83bd3ab68f4a6a14df2ad7aea88f5ad09
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
         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);
+    }));
 });