Skip to content

Commit

Permalink
test: improving crypto fips
Browse files Browse the repository at this point in the history
- 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 MylesBorins committed Jan 16, 2017
1 parent f355e20 commit ee49320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-crypto-fips.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ee49320

Please sign in to comment.