diff options
author | 2021-06-23 16:54:10 +0100 | |
---|---|---|
committer | 2021-06-24 11:30:31 +0100 | |
commit | 6543a1ad2d494053cfd1548aa471d2449739b29e (patch) | |
tree | 55768d6c8b3d45c9334c8078fc632c8c4d11a060 /gui-clamp/ui-react/src/components/dialogs/ReadAndConvertYaml.js | |
parent | 368a50d75e7a4cd17294b90321b90ef59c08c0c1 (diff) |
Added jest/enzyme tests for new components
Tests and snapshots added for reference
Single package added to package.json
Issue-ID: POLICY-3423
Change-Id: Ica0045bb80f587856f6e2392c3d846b6416cce21
Signed-off-by: saul.gill <saul.gill@est.tech>
Diffstat (limited to 'gui-clamp/ui-react/src/components/dialogs/ReadAndConvertYaml.js')
-rw-r--r-- | gui-clamp/ui-react/src/components/dialogs/ReadAndConvertYaml.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gui-clamp/ui-react/src/components/dialogs/ReadAndConvertYaml.js b/gui-clamp/ui-react/src/components/dialogs/ReadAndConvertYaml.js index 03b76b8..3a02588 100644 --- a/gui-clamp/ui-react/src/components/dialogs/ReadAndConvertYaml.js +++ b/gui-clamp/ui-react/src/components/dialogs/ReadAndConvertYaml.js @@ -45,16 +45,18 @@ const ReadAndConvertYaml = (props) => { const version = '1.0.0'; const handleClose = () => { + console.log('handleClose called'); setShow(false); props.history.push('/'); } - const getToscaServiceTemplateHandler = (toscaServiceTemplate) => { + const getToscaServiceTemplateHandler = async (toscaServiceTemplate) => { + console.log('getToscaServiceTemplateHandler called'); const toscaData = { ...toscaServiceTemplate, id: Math.random().toString() }; - console.log(toscaData); + // console.log(toscaData); setToscaTemplateData(toscaData); } |