diff options
author | lapentafd <francesco.lapenta@est.tech> | 2022-01-04 08:45:27 +0000 |
---|---|---|
committer | lapentafd <francesco.lapenta@est.tech> | 2022-01-13 12:42:38 +0000 |
commit | 608da1fe97427b55b0fee617237301d0bef86ae0 (patch) | |
tree | f6f5cdd6e8d70ee2c19fcd0164c7db913b1d8772 /gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/showhideElement.test.js | |
parent | 3eb9e8975b8d9e1f44106b3c9c4c6d8b711ad3a2 (diff) |
Code coverage gui-editor-apex
Issue-ID: POLICY-3351
Change-Id: I51ae3b5e6de3f81af5cb445ade7309360da50afa
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
Diffstat (limited to 'gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/showhideElement.test.js')
-rw-r--r-- | gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/showhideElement.test.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/showhideElement.test.js b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/showhideElement.test.js index 4e4e811..117cbf7 100644 --- a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/showhideElement.test.js +++ b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/showhideElement.test.js @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * Copyright (C) 2021 Nordix Foundation. + * Copyright (C) 2021-2022 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,6 +27,13 @@ test('Test editTaskForm_activate CREATE', () => { expect(mock_activate).toBeCalled(); }); +test('Test editTaskForm_activate NO CHECKBOX', () => { + const mock_activate = jest.fn(mod.showHideElement_display); + let documentSpy = jest.spyOn(document, 'getElementById'); + mock_activate(documentSpy, null, null, 'hidestyle', 'buttonshowStyle','buttonhideStyle'); + expect(mock_activate).toBeCalled(); +}); + |