From 3b3b7117db19bf4d0086ee7eced0432380f55782 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Wed, 18 Jul 2018 18:21:14 +0530 Subject: added test case to param name value component spec added test case to param-name-value.spec.ts to increase code coverage Issue-ID: APPC-1089 Change-Id: I2598eb2b3b7f7551f89f26e2ec6d8f820466cd42 Signed-off-by: Sandeep J --- .../param-name-value/param-name-value.component.spec.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/app/vnfs/build-artifacts/template-holder/param-name-value') diff --git a/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts b/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts index 0ec9d9f..b9ac40f 100644 --- a/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts +++ b/src/app/vnfs/build-artifacts/template-holder/param-name-value/param-name-value.component.spec.ts @@ -3,6 +3,8 @@ =================================================================== Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. =================================================================== +Copyright (C) 2018 IBM. +=================================================================== Unless otherwise specified, all software contained herein is licensed under the Apache License, Version 2.0 (the License); @@ -276,4 +278,13 @@ describe('GoldenConfigurationMappingComponent', () => { expect(spy).toHaveBeenCalled(); }); + + it('should validate of the file name creation for configscaleout is correct', () => { + fixture = TestBed.createComponent(GoldenConfigurationMappingComponent); + component = fixture.componentInstance; + + let fileName=component.updateFileNameForConfigScaleOut('Configure','testVnfType','0.0.1','id1'); + let expectedFileName="param_ Configure_testVnfType_0.0.1V_id1.json" + expect(expectedFileName).toBe(fileName); + }); }); \ No newline at end of file -- cgit 1.2.3-korg