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>
This commit is contained in:
James Tenenbaum 2016-12-01 10:07:28 -07:00 committed by Italo A. Casas
parent 8621ccc25a
commit f5c2c8c7f4

View File

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