From ee4d90f68fe1998cd32b9cce41aa641d63cdae83 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 10 Nov 2020 14:39:57 -0500 Subject: [PATCH] fix: test breakage from f300c933a50263039a57811f8cc716df39a138b0 --- test/controllers.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/test/controllers.js b/test/controllers.js index 63865727f5..5b4d2e0801 100644 --- a/test/controllers.js +++ b/test/controllers.js @@ -820,13 +820,12 @@ describe('Controllers', function () { }, }, function (err, res, body) { assert.ifError(err); - assert.equal(res.statusCode, 404); - assert.deepEqual(JSON.parse(body), { - response: {}, - status: { - code: 'not-found', - message: '[[error:no-user]]', - }, + assert.strictEqual(res.statusCode, 404); + const parsedResponse = JSON.parse(body); + assert.deepStrictEqual(parsedResponse.response, {}); + assert.deepStrictEqual(parsedResponse.status, { + code: 'not-found', + message: '[[error:no-user]]', }); done(); });