mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-07 14:02:29 -04:00
upgrade bootstrap to 5.3.7
This commit is contained in:
parent
16d6fe4c40
commit
f68650ce5f
11 changed files with 23 additions and 24 deletions
|
@ -10,7 +10,7 @@ describe('Prompt', function () {
|
|||
'string',
|
||||
function (password) {
|
||||
password = password.replace(/\r+|\n+/g, '');
|
||||
var clean = jsdom('', {url: 'ftp://example.com/?0000000000000000'});
|
||||
const clean = jsdom('', {url: 'ftp://example.com/?0000000000000000'});
|
||||
$('body').html(
|
||||
'<div id="passwordmodal" class="modal fade" role="dialog">' +
|
||||
'<div class="modal-dialog"><div class="modal-content">' +
|
||||
|
@ -22,13 +22,14 @@ describe('Prompt', function () {
|
|||
);
|
||||
$.PrivateBin.Model.reset();
|
||||
$.PrivateBin.Model.init();
|
||||
global.bootstrap = require('../bootstrap-5.3.7');
|
||||
$.PrivateBin.Prompt.init();
|
||||
$.PrivateBin.Prompt.requestPassword();
|
||||
$('#passworddecrypt').val(password);
|
||||
// TODO triggers error messages in current jsDOM version, find better solution
|
||||
//$('#passwordform').submit();
|
||||
//var result = $.PrivateBin.Prompt.getPassword();
|
||||
var result = $('#passworddecrypt').val();
|
||||
const result = $('#passworddecrypt').val();
|
||||
$.PrivateBin.Model.reset();
|
||||
// TODO triggers error messages in jsDOM since version 11
|
||||
//clean();
|
||||
|
@ -37,4 +38,3 @@ describe('Prompt', function () {
|
|||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue