fix: broken test due to change in response code

This commit is contained in:
Julian Lam
2021-01-07 14:58:19 -05:00
parent 0da2843281
commit 9534d95619

View File

@@ -422,7 +422,7 @@ describe('authentication', function () {
loginUser('ginger@nodebb.org', '123456', function (err, response, body) {
meta.config.allowLoginWith = 'username-email';
assert.ifError(err);
assert.equal(response.statusCode, 500);
assert.equal(response.statusCode, 400);
assert.equal(body, '[[error:wrong-login-type-username]]');
done();
});