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 31, 2017
1 parent a75883e commit 951ddb3
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 951ddb3

Please sign in to comment.