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:
parent
8621ccc25a
commit
f5c2c8c7f4
@ -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…
x
Reference in New Issue
Block a user