mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-06 10:49:58 +02:00
update jsdom dependency, fix tests
This commit is contained in:
parent
dc983621ac
commit
3b6b97429d
4 changed files with 100 additions and 159 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue