From 55b58baed16e900142fb266b9d62d79ff9cfe96e Mon Sep 17 00:00:00 2001 From: Daniel Pittman Date: Thu, 1 Dec 2016 11:05:31 -0600 Subject: [PATCH] test: use assert.strictEqual in test-crypto-ecb Updated test-crypto-ecb.js to change assert.equal to assert.strictEqual. PR-URL: https://github.com/nodejs/node/pull/9980 Reviewed-By: Rich Trott --- test/parallel/test-crypto-ecb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-crypto-ecb.js b/test/parallel/test-crypto-ecb.js index dbdb486e9bcf7f..d423a386b30a19 100644 --- a/test/parallel/test-crypto-ecb.js +++ b/test/parallel/test-crypto-ecb.js @@ -21,7 +21,7 @@ crypto.DEFAULT_ENCODING = 'buffer'; var encrypt = crypto.createCipheriv('BF-ECB', 'SomeRandomBlahz0c5GZVnR', ''); var hex = encrypt.update('Hello World!', 'ascii', 'hex'); hex += encrypt.final('hex'); - assert.equal(hex.toUpperCase(), '6D385F424AAB0CFBF0BB86E07FFB7D71'); + assert.strictEqual(hex.toUpperCase(), '6D385F424AAB0CFBF0BB86E07FFB7D71'); }()); (function() { @@ -29,5 +29,5 @@ crypto.DEFAULT_ENCODING = 'buffer'; ''); var msg = decrypt.update('6D385F424AAB0CFBF0BB86E07FFB7D71', 'hex', 'ascii'); msg += decrypt.final('ascii'); - assert.equal(msg, 'Hello World!'); + assert.strictEqual(msg, 'Hello World!'); }());