mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
fix: broken test due to change in response code
This commit is contained in:
@@ -422,7 +422,7 @@ describe('authentication', function () {
|
|||||||
loginUser('ginger@nodebb.org', '123456', function (err, response, body) {
|
loginUser('ginger@nodebb.org', '123456', function (err, response, body) {
|
||||||
meta.config.allowLoginWith = 'username-email';
|
meta.config.allowLoginWith = 'username-email';
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
assert.equal(response.statusCode, 500);
|
assert.equal(response.statusCode, 400);
|
||||||
assert.equal(body, '[[error:wrong-login-type-username]]');
|
assert.equal(body, '[[error:wrong-login-type-username]]');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user