diff options
author | Julian Duque <julianduquej@gmail.com> | 2016-12-01 10:42:32 -0600 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-12-03 22:35:04 -0800 |
commit | 5486867e00c061ba326a847743d4ca2bb914359f (patch) | |
tree | 05d11fa4a0abddb4f096a25bb5f428c069030328 /test/parallel/test-crypto-cipheriv-decipheriv.js | |
parent | 33435d594710bb7b3d53f749215651f00276b539 (diff) | |
download | android-node-v8-5486867e00c061ba326a847743d4ca2bb914359f.tar.gz android-node-v8-5486867e00c061ba326a847743d4ca2bb914359f.tar.bz2 android-node-v8-5486867e00c061ba326a847743d4ca2bb914359f.zip |
test: refactor test for crypto cipher/decipher iv
Replace assert.equal with assert.strictEqual.
PR-URL: https://github.com/nodejs/node/pull/9943
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-crypto-cipheriv-decipheriv.js')
-rw-r--r-- | test/parallel/test-crypto-cipheriv-decipheriv.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-crypto-cipheriv-decipheriv.js b/test/parallel/test-crypto-cipheriv-decipheriv.js index a3a14738c4..7756ed8938 100644 --- a/test/parallel/test-crypto-cipheriv-decipheriv.js +++ b/test/parallel/test-crypto-cipheriv-decipheriv.js @@ -22,7 +22,7 @@ function testCipher1(key, iv) { var txt = decipher.update(ciph, 'hex', 'utf8'); txt += decipher.final('utf8'); - assert.equal(txt, plaintext, 'encryption and decryption with key and iv'); + assert.strictEqual(txt, plaintext, 'encryption/decryption with key and iv'); // streaming cipher interface // NB: In real life, it's not guaranteed that you can get all of it @@ -36,7 +36,7 @@ function testCipher1(key, iv) { dStream.end(ciph); txt = dStream.read().toString('utf8'); - assert.equal(txt, plaintext, 'streaming cipher iv'); + assert.strictEqual(txt, plaintext, 'streaming cipher iv'); } @@ -54,7 +54,7 @@ function testCipher2(key, iv) { var txt = decipher.update(ciph, 'buffer', 'utf8'); txt += decipher.final('utf8'); - assert.equal(txt, plaintext, 'encryption and decryption with key and iv'); + assert.strictEqual(txt, plaintext, 'encryption/decryption with key and iv'); } testCipher1('0123456789abcd0123456789', '12345678'); |