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
@@ -16,7 +16,7 @@ describe('ServerInteraction', function () {
async function (key, password, message) {
// pause to let async functions conclude
await new Promise(resolve => setTimeout(resolve, 300));
let clean = jsdom();
let clean = globalThis.cleanup();
window.crypto = new WebCrypto();
message = message.trim();