mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-24 22:45:10 -04:00
update jsdom dependency, fix tests
This commit is contained in:
+2
-1
@@ -727,11 +727,12 @@ describe('TopNav', function () {
|
||||
cleanup();
|
||||
});
|
||||
|
||||
// TODO triggers error messages in jsDOM version 12, but passes
|
||||
it(
|
||||
'displays raw text view correctly',
|
||||
function () {
|
||||
const clean = jsdom('', {url: 'https://privatebin.net/?0123456789abcdef#0'});
|
||||
global.URL = require('jsdom-url').URL;
|
||||
//global.URL = require('jsdom-url').URL;
|
||||
$('body').html('<button id="rawtextbutton"></button>');
|
||||
const sample = 'example';
|
||||
$.PrivateBin.PasteViewer.setText(sample);
|
||||
|
||||
Reference in New Issue
Block a user