From f5c2c8c7f42ef7a65f5555779cf08b44cbabbea1 Mon Sep 17 00:00:00 2001 From: James Tenenbaum Date: Thu, 1 Dec 2016 10:07:28 -0700 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Italo A. Casas --- test/parallel/test-crypto-fips.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-crypto-fips.js b/test/parallel/test-crypto-fips.js index 55b542ca9e..24b1af70b7 100644 --- a/test/parallel/test-crypto-fips.js +++ b/test/parallel/test-crypto-fips.js @@ -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); }