From c69f6f6876c9837ba4b22c5639bbbfbe70268629 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Mon, 15 Sep 2025 06:02:38 +0200 Subject: [PATCH] Fix jwt-token --- server/tests/middleware/auth.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tests/middleware/auth.test.js b/server/tests/middleware/auth.test.js index 9892a1a..80a1596 100644 --- a/server/tests/middleware/auth.test.js +++ b/server/tests/middleware/auth.test.js @@ -157,7 +157,7 @@ describe('Authentication Middleware', () => { expect(res.statusCode).to.equal(401); expect(res.data.success).to.be.false; - expect(res.data.message).to.equal('User not found'); + expect(res.data.message).to.equal('Invalid or inactive user'); }); it('should reject inactive user', async () => { @@ -181,7 +181,7 @@ describe('Authentication Middleware', () => { expect(res.statusCode).to.equal(401); expect(res.data.success).to.be.false; - expect(res.data.message).to.equal('User account is inactive'); + expect(res.data.message).to.equal('Invalid or inactive user'); }); }); });