test: use cleanup function everywhere instead of jsdom manually

This commit is contained in:
rugk
2026-03-03 11:01:30 +00:00
parent 778df44b0b
commit 3de6dc9f68
15 changed files with 84 additions and 92 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ describe('Editor', function () {
'returns text fed into the textarea, handles editor tabs',
'string',
function (text) {
var clean = jsdom(),
var clean = globalThis.cleanup(),
results = [];
$('body').html(
'<ul id="editorTabs" class="nav nav-tabs hidden"><li ' +