diff options
author | saul.gill <saul.gill@est.tech> | 2021-06-23 16:54:10 +0100 |
---|---|---|
committer | saul.gill <saul.gill@est.tech> | 2021-06-24 11:30:31 +0100 |
commit | 6543a1ad2d494053cfd1548aa471d2449739b29e (patch) | |
tree | 55768d6c8b3d45c9334c8078fc632c8c4d11a060 /gui-clamp/ui-react/src/components/dialogs/GetLocalToscaFileForUpload.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/GetLocalToscaFileForUpload.js')
-rw-r--r-- | gui-clamp/ui-react/src/components/dialogs/GetLocalToscaFileForUpload.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui-clamp/ui-react/src/components/dialogs/GetLocalToscaFileForUpload.js b/gui-clamp/ui-react/src/components/dialogs/GetLocalToscaFileForUpload.js index f159280..bac9953 100644 --- a/gui-clamp/ui-react/src/components/dialogs/GetLocalToscaFileForUpload.js +++ b/gui-clamp/ui-react/src/components/dialogs/GetLocalToscaFileForUpload.js @@ -50,14 +50,17 @@ const GetLocalToscaFileForUpload = (props) => { const [alertMessages, setAlertMessages] = useState(); const handleClose = () => { + console.log('handleClose called'); setShow(false); props.history.push('/'); } const fileChangeHandler = (event) => { event.preventDefault(); + console.log('fileChangeHandler called'); if (event.currentTarget.files[0] !== undefined) { + console.log('file defined'); setSelectedFile(event.currentTarget.files[0]); setFileIsSelected(true); |