aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-08-09 19:09:30 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-08-09 19:09:41 +0530
commitf203cc418f39b51f2510e462243b84acdea2bec5 (patch)
treeed8bce4263855aa6f5d42a40e02419dc1ef6f77f /src/app
parent6ba50cc051029760770442206b9c56b70c198bb9 (diff)
build-artifacts - added test case
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>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts b/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
index 25365bb..af711da 100644
--- a/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
+++ b/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts
@@ -168,4 +168,13 @@ describe('BuildDesignComponent', () => {
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();
+ });
});