wrote test case to test checkRefDataReqFields() funtion when action,
device-protocol and scope values are set to blank.
Issue-ID: APPC-1064
Change-Id: I405aca5092e631183e690bcd60b10439f1396568
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
expect(spy).toHaveBeenCalled();
});
+
+ it('Should notify error message if action, deviceprotocol and scope are blank ', () => {
+ let spy = spyOn(NotificationsService.prototype, 'error');
+ component.refList = {"action": "", "scope": {"vnf-type": ""}, "device-protocol": ""};
+
+ component.checkRefDataReqFields();
+
+ expect(spy).toHaveBeenCalled();
+ });
});