aboutsummaryrefslogtreecommitdiffstats
path: root/gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.test.js
diff options
context:
space:
mode:
authorbrunomilitzer <bruno.militzer@est.tech>2021-12-17 17:41:57 +0000
committerBruno Militzer <bruno.militzer@est.tech>2022-01-04 15:51:54 +0000
commit4be96f85c65df9384b11d68e87ca9e03e27a083c (patch)
treeaf178c54ace2b5d7457e3547b81cae6f4b6d5ebc /gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.test.js
parentacd025f30f0005731c9b2894cb954bd31401ab76 (diff)
Added Jest Unit Tests
Jest Tests for creation of instance properties Jest Tests for deletion of instance properties Included Issue-Id: 3566 Issue-ID: POLICY-3563 Signed-off-by: brunomilitzer <bruno.militzer@est.tech> Change-Id: I227ae8f306df10ee3cc341791471dda9ca79d9d1
Diffstat (limited to 'gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.test.js')
-rw-r--r--gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.test.js b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.test.js
index 94d9038..520eea9 100644
--- a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.test.js
+++ b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.test.js
@@ -47,7 +47,7 @@ describe('Verify UploadToscaFile', () => {
}
};
- act(async () => {
+ await act(() => {
component.find('[variant="primary"]').get(0).props.onClick(event);
expect(logSpy).toHaveBeenCalledWith('postServiceTemplateHandler called');
})