mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-22 06:28:46 -04:00
update jsdom dependency, fix tests
This commit is contained in:
parent
e4d1f4a26d
commit
64b0e33574
4 changed files with 141 additions and 141 deletions
|
@ -66,7 +66,10 @@ describe('Check', function () {
|
|||
'url': (secureProtocol ? 'https' : 'http' ) + '://' + domain.join('') + '/'
|
||||
}
|
||||
);
|
||||
window.crypto = new WebCrypto();
|
||||
Object.defineProperty(window, 'crypto', {
|
||||
value: new WebCrypto(),
|
||||
writeable: false,
|
||||
});
|
||||
Legacy.Check.init();
|
||||
const result1 = Legacy.Check.getInit() && Legacy.Check.getStatus(),
|
||||
result2 = secureProtocol === (document.getElementById('httpnotice').className === 'hidden');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue