From 4aedf73ee896f8bac3dce6d728cb40a9519b76d7 Mon Sep 17 00:00:00 2001 From: TedHumphrey Date: Tue, 13 Aug 2019 15:56:33 +0000 Subject: Changes to support npm publish of reactjs components Modify the pom.xml to copy ui-react sources to target, add maven-exec-plugin to run the "npm publish" step, update the package.json to include where to publish Issue-ID: CLAMP-450 Change-Id: Id0d15e71924867d1d4329a377661d125b21fee6c Signed-off-by: TedHumphrey --- ui-react/src/__test__/LoopCache.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui-react/src') diff --git a/ui-react/src/__test__/LoopCache.test.js b/ui-react/src/__test__/LoopCache.test.js index e5b50259d..101f864aa 100644 --- a/ui-react/src/__test__/LoopCache.test.js +++ b/ui-react/src/__test__/LoopCache.test.js @@ -77,7 +77,7 @@ describe('Verify LoopCache functions', () => { expect(loopCache.getDcaeDeploymentProperties()).toStrictEqual(deploymentProp); }); - it('getMicroServicesJsonForType', () => { + it('getMicroServiceForName', () => { const msJson = { "name": "TCA_h2NMX_v1_0_ResourceInstanceName1_tca", "modelType": "onap.policies.monitoring.cdap.tca.hi.lo.app", @@ -89,7 +89,7 @@ describe('Verify LoopCache functions', () => { expect(loopCache.getMicroServicesJsonForType("TCA_h2NMX_v1_0_ResourceInstanceName1_tca_2")).toBeNull(); }); - it('getMicroServiceProperties', () => { + it('getMicroServicePropertiesForName', () => { const msProp = {"domain": "measurementsForVfScaling"}; expect(loopCache.getMicroServiceProperties("TCA_h2NMX_v1_0_ResourceInstanceName1_tca")).toStrictEqual(msProp); expect(loopCache.getMicroServiceProperties("TCA_h2NMX_v1_0_ResourceInstanceName1_tca_2")).toBeNull(); @@ -100,7 +100,7 @@ describe('Verify LoopCache functions', () => { expect(loopCache.getMicroServiceJsonRepresentationForType("TCA_h2NMX_v1_0_ResourceInstanceName1_tca")).toStrictEqual(msJsonRepresentation); }); - it('getMicroServiceJsonRepresentationForType', () => { + it('getMicroServiceJsonRepresentationForName', () => { const msJsonRepresentation = {"schema": {}}; expect(loopCache.getMicroServiceJsonRepresentationForType("TCA_h2NMX_v1_0_ResourceInstanceName1_tca")).toStrictEqual(msJsonRepresentation); }); -- cgit 1.2.3-korg