Skip to content

Commit 3e8df73

Browse files
James TenenbaumFishrock123
James Tenenbaum
authored andcommitted
test: improving crypto fips
- using strictEqual instead equal - cast `response` to Number() PR-URL: #10002 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
1 parent 6780c0e commit 3e8df73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-crypto-fips.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function testHelper(stream, args, expectedOutput, cmd, env) {
5353
assert.notEqual(-1, response.indexOf(expectedOutput));
5454
} else {
5555
// Normal path where we expect either FIPS enabled or disabled.
56-
assert.equal(expectedOutput, response);
56+
assert.strictEqual(expectedOutput, Number(response));
5757
}
5858
childOk(child);
5959
}

0 commit comments

Comments
 (0)