mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-20 22:05:35 -04:00
improve JS unit test readability & error reporting
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user