mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-21 22:17:44 -04:00
test: use cleanup function everywhere instead of jsdom manually
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user