From 44179ad78930e8ecc4d6429841ba2e1854c46a61 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Tue, 16 Sep 2025 22:05:51 +0200 Subject: [PATCH] Fix jwt-token --- server/tests/routes/detections.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/tests/routes/detections.test.js b/server/tests/routes/detections.test.js index 1fa83ad..6109ac5 100644 --- a/server/tests/routes/detections.test.js +++ b/server/tests/routes/detections.test.js @@ -272,8 +272,9 @@ describe('Detections Routes', () => { .get('/detections') .set('Authorization', `Bearer ${token}`); - expect(response.status).to.equal(404); + expect(response.status).to.equal(403); expect(response.body.success).to.be.false; + expect(response.body.message).to.equal('Tenant is inactive'); }); it('should handle invalid pagination parameters', async () => {