diff options
author | James Tenenbaum <James Tenenbaum> | 2016-12-01 10:07:28 -0700 |
---|---|---|
committer | Italo A. Casas <me@italoacasas.com> | 2016-12-11 20:07:32 -0500 |
commit | f5c2c8c7f42ef7a65f5555779cf08b44cbabbea1 (patch) | |
tree | 558ff8327fbfd38747a9743162c464c53601f310 /test/parallel/test-crypto-fips.js | |
parent | 8621ccc25a3da62bfc8e756e34b4238c35fab8a4 (diff) | |
download | node-new-f5c2c8c7f42ef7a65f5555779cf08b44cbabbea1.tar.gz |
test: improving crypto fips
- using strictEqual instead equal
- cast `response` to Number()
PR-URL: https://github.com/nodejs/node/pull/10002
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Diffstat (limited to 'test/parallel/test-crypto-fips.js')
-rw-r--r-- | test/parallel/test-crypto-fips.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-crypto-fips.js b/test/parallel/test-crypto-fips.js index 55b542ca9e..24b1af70b7 100644 --- a/test/parallel/test-crypto-fips.js +++ b/test/parallel/test-crypto-fips.js @@ -53,7 +53,7 @@ function testHelper(stream, args, expectedOutput, cmd, env) { assert.notEqual(-1, response.indexOf(expectedOutput)); } else { // Normal path where we expect either FIPS enabled or disabled. - assert.equal(expectedOutput, response); + assert.strictEqual(expectedOutput, Number(response)); } childOk(child); } |