Browse Source
test: renamed assert.Equal to assert.strictEqual
v6
Jared Young
8 years ago
committed by
Anna Henningsen
No known key found for this signature in database
GPG Key ID: D8B9F5AEAE84E4CF
1 changed files with
1 additions and
1 deletions
-
test/parallel/test-crypto-authenticated.js
|
|
@ -352,7 +352,7 @@ for (const i in TEST_CASES) { |
|
|
|
let msg = decrypt.update(test.ct, 'hex', outputEncoding); |
|
|
|
if (!test.tampered) { |
|
|
|
msg += decrypt.final(outputEncoding); |
|
|
|
assert.equal(msg, test.plain); |
|
|
|
assert.strictEqual(msg, test.plain); |
|
|
|
} else { |
|
|
|
// assert that final throws if input data could not be verified!
|
|
|
|
assert.throws(function() { decrypt.final('ascii'); }, / auth/); |
|
|
|