Skip to content

Commit

Permalink
UI/Table tests: do not use jquery in test
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaagen committed Apr 29, 2024
1 parent e801915 commit f53dfa9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Presentation Table', () => {
const domString = fs.readFileSync('./components/ILIAS/UI/tests/Client/Table/Presentation/PresentationTest.html').toString();
const dom = new JSDOM(domString);
/* eslint-env jquery */
dom.window.document.getElementById = (id) => $(`#${id}`)[0];
dom.window.document.getElementById = (id) => document.querySelector(`#${id}`);
global.window = dom.window;
global.document = dom.window.document;
});
Expand Down

0 comments on commit f53dfa9

Please sign in to comment.