mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-31 12:24:30 -04:00
implement zlib via web assembly, replacing rawdeflate library
This commit is contained in:
parent
5ce3aa2817
commit
0ad5b3e900
8 changed files with 216 additions and 1724 deletions
|
@ -2,12 +2,12 @@
|
|||
require('../common');
|
||||
|
||||
describe('CryptTool', function () {
|
||||
afterEach(async function () {
|
||||
// pause to let async functions conclude
|
||||
await new Promise(resolve => setTimeout(resolve, 1900));
|
||||
});
|
||||
|
||||
describe('cipher & decipher', function () {
|
||||
afterEach(async function () {
|
||||
// pause to let async functions conclude
|
||||
await new Promise(resolve => setTimeout(resolve, 1900));
|
||||
});
|
||||
|
||||
this.timeout(30000);
|
||||
it('can en- and decrypt any message', function () {
|
||||
jsc.check(jsc.forall(
|
||||
|
@ -29,7 +29,8 @@ describe('CryptTool', function () {
|
|||
clean();
|
||||
return message === plaintext;
|
||||
}
|
||||
));
|
||||
),
|
||||
{tests: 3});
|
||||
});
|
||||
|
||||
// The below static unit tests are included to ensure deciphering of "classic"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue