Browse Source

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>
v6
James Tenenbaum 8 years ago
committed by Italo A. Casas
parent
commit
f5c2c8c7f4
  1. 2
      test/parallel/test-crypto-fips.js

2
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);
}

Loading…
Cancel
Save