diff options
-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 a6ba8c3..25365bb 100644 --- a/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts +++ b/src/app/vnfs/build-artifacts/build-artifacts.component.spec.ts @@ -159,4 +159,13 @@ describe('BuildDesignComponent', () => { component.updateAccessUpdatePages('config', [{'action' : 'configModify'}]); expect(component.setAllowOtherUpdates).toHaveBeenCalledWith(false); }); + + it('Should notify error message if no valid template identifier', () => { + let spy = spyOn(NotificationsService.prototype, 'error'); + component.refList = {"action": "ConfigScaleOut", "scope": {"vnf-type": "test 1"}, "device-protocol": ""}; + + component.checkRefDataReqFields(); + + expect(spy).toHaveBeenCalled(); + }); }); |