update jsdom dependency, fix tests

This commit is contained in:
El RIDO
2025-02-27 08:16:30 +01:00
parent 64b0e33574
commit 4e518b3fce
8 changed files with 678 additions and 888 deletions
-1
View File
@@ -732,7 +732,6 @@ describe('TopNav', function () {
'displays raw text view correctly',
function () {
const clean = jsdom('', {url: 'https://privatebin.net/?0123456789abcdef#0'});
//global.URL = require('jsdom-url').URL;
$('body').html('<button id="rawtextbutton"></button>');
const sample = 'example';
$.PrivateBin.PasteViewer.setText(sample);