From 9534d9561977da6ff420c560e972ca6c77ac835c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 7 Jan 2021 14:58:19 -0500 Subject: [PATCH] fix: broken test due to change in response code --- test/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/authentication.js b/test/authentication.js index 6a1d255bac..35be6ad0c2 100644 --- a/test/authentication.js +++ b/test/authentication.js @@ -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(); });