diff options
author | 2022-02-26 10:47:46 +0000 | |
---|---|---|
committer | 2022-02-26 10:47:46 +0000 | |
commit | 4a4a638d6d0336134cdb4cdab093054f3b3f09f9 (patch) | |
tree | e573d0b400bed1ff50ec815da974b738ddf74c1b /gui-editors/gui-editor-apex/src/main/webapp/js/__test__/fileMenu.test.js | |
parent | 4a50604b767176aa323acae366fa762015a7f9f6 (diff) | |
parent | 62bbf4d0aa4831f6bdd461011b71a4bb94724517 (diff) |
Merge "Code coverage apex editor"
Diffstat (limited to 'gui-editors/gui-editor-apex/src/main/webapp/js/__test__/fileMenu.test.js')
-rw-r--r-- | gui-editors/gui-editor-apex/src/main/webapp/js/__test__/fileMenu.test.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gui-editors/gui-editor-apex/src/main/webapp/js/__test__/fileMenu.test.js b/gui-editors/gui-editor-apex/src/main/webapp/js/__test__/fileMenu.test.js index ffc9e2c..9f3c4b1 100644 --- a/gui-editors/gui-editor-apex/src/main/webapp/js/__test__/fileMenu.test.js +++ b/gui-editors/gui-editor-apex/src/main/webapp/js/__test__/fileMenu.test.js @@ -21,11 +21,14 @@ const mod = require('../fileMenu'); test('test hideMenu', () => { - document.documentElement.innerHTML = '<html><head></head><body><ul id="menu">Hello world!</ul></body></html>'; + document.documentElement.innerHTML = '<html><head></head><body><ul id="menu">Hello world<li>!</li></ul></body></html>'; $ = require('jquery'); window.$ = $; $('#menu').fileMenu(); - $('#menu').click(); + $('li').mouseenter(); + $('li').click(); + $('ul').mouseenter(); + $('ul').click(); let h1 = document.querySelector('ul'); expect(h1.textContent).toEqual('Hello world!'); }); |