Permalink
Browse files

test: improving crypto fips

- using strictEqual instead equal
- cast `response` to Number()

PR-URL: #10002
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
  • Loading branch information...
James Tenenbaum authored and italoacasas committed Dec 1, 2016
1 parent 8621ccc commit f5c2c8c7f42ef7a65f5555779cf08b44cbabbea1
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit f5c2c8c

Please sign in to comment.