mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-11-29 10:37:32 -05:00
improve JS unit test readability & error reporting
This commit is contained in:
parent
06e95a0911
commit
e853a934ea
5 changed files with 97 additions and 39 deletions
|
|
@ -58,9 +58,10 @@ describe('CryptTool', function () {
|
|||
'foo', 'bar', cipherMessage
|
||||
);
|
||||
clean();
|
||||
const result = (message === plaintext);
|
||||
if (!result) console.log(plaintext, cipherMessage);
|
||||
assert.ok(result);
|
||||
if (message !== plaintext) {
|
||||
console.log(plaintext, cipherMessage);
|
||||
}
|
||||
assert.strictEqual(message, plaintext);
|
||||
});
|
||||
|
||||
it('can en- and decrypt a particular message (#260)', function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue