' +
@@ -164,7 +166,7 @@ describe('AttachmentViewer', function () {
];
for (const filename of maliciousFileNames) {
PrivateBin.AttachmentViewer.setAttachment('data:;base64,', filename);
- assert.ok(!$('body').html().includes(filename));
+ assert.ok(!document.body.innerHTML.includes(filename));
}
clean();
}
diff --git a/js/test/CopyToClipboard.js b/js/test/CopyToClipboard.js
index e91ad50c..d16ec267 100644
--- a/js/test/CopyToClipboard.js
+++ b/js/test/CopyToClipboard.js
@@ -12,7 +12,7 @@ describe('CopyToClipboard', function() {
var clean = globalThis.cleanup();
common.enableClipboard();
- $('body').html(
+ document.body.innerHTML = (
'
+++ no document text ' +
'+++
' +
'