diff options
Diffstat (limited to 'gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/ApexUtils.test.js')
-rw-r--r-- | gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/ApexUtils.test.js | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/ApexUtils.test.js b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/ApexUtils.test.js index bc331b6..ba4a536 100644 --- a/gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/ApexUtils.test.js +++ b/gui-editors/gui-editor-apex/src/main/resources/webapp/js/__test__/ApexUtils.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. @@ -96,3 +96,21 @@ test('createAddFormButton with text', () => { const actual = ApexUtils.createAddFormButton('My_text'); expect(actual).toEqual(expected); }); + +test('test EMPTY createEditArea', () => { + const mock_activate = jest.fn(ApexUtils.createEditArea); + mock_activate('id', null, ''); + expect(mock_activate).toBeCalled(); +}); + +test('test getHomepageURL', () => { + const mock_activate = jest.fn(ApexUtils.getHomepageURL); + mock_activate(); + expect(mock_activate).toBeCalled(); +}); + +test('test isFirefox', () => { + const mock_activate = jest.fn(ApexUtils.isFirefox); + mock_activate(); + expect(mock_activate).toBeCalled(); +});
\ No newline at end of file |