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
@@ -26,7 +26,7 @@ describe('DiscussionViewer', function () {
jsc.elements(['loading', 'danger', 'other']),
'nestring',
function (comments, commentKey, fadeOut, nickname, message, alertType, alert) {
var clean = jsdom(),
var clean = globalThis.cleanup(),
results = [];
$('body').html(
'<div id="discussion"><h4>Discussion</h4>' +