fix: test breakage from f300c933a5

v1.18.x
Julian Lam 4 years ago
parent f300c933a5
commit ee4d90f68f

@ -820,13 +820,12 @@ describe('Controllers', function () {
}, },
}, function (err, res, body) { }, function (err, res, body) {
assert.ifError(err); assert.ifError(err);
assert.equal(res.statusCode, 404); assert.strictEqual(res.statusCode, 404);
assert.deepEqual(JSON.parse(body), { const parsedResponse = JSON.parse(body);
response: {}, assert.deepStrictEqual(parsedResponse.response, {});
status: { assert.deepStrictEqual(parsedResponse.status, {
code: 'not-found', code: 'not-found',
message: '[[error:no-user]]', message: '[[error:no-user]]',
},
}); });
done(); done();
}); });

Loading…
Cancel
Save