|
|
@ -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();
|
|
|
|
});
|
|
|
|
});
|
|
|
|