diff options
author | 2018-08-09 19:09:30 +0530 | |
---|---|---|
committer | 2018-08-09 19:09:41 +0530 | |
commit | f203cc418f39b51f2510e462243b84acdea2bec5 (patch) | |
tree | ed8bce4263855aa6f5d42a40e02419dc1ef6f77f /src/app/vnfs/build-artifacts | |
parent | 6ba50cc051029760770442206b9c56b70c198bb9 (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/vnfs/build-artifacts')
-rw-r--r-- | src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts | 9 |
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(); + }); }); |