From 27fa3e546d83731100ab48ed398d52661b241dfe Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Tue, 16 Sep 2025 22:06:36 +0200 Subject: [PATCH] Fix jwt-token --- server/tests/routes/detections.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/tests/routes/detections.test.js b/server/tests/routes/detections.test.js index 6109ac5..601201a 100644 --- a/server/tests/routes/detections.test.js +++ b/server/tests/routes/detections.test.js @@ -272,6 +272,9 @@ describe('Detections Routes', () => { .get('/detections') .set('Authorization', `Bearer ${token}`); + console.log('🔍 Inactive tenant test - Response status:', response.status); + console.log('🔍 Inactive tenant test - Response body:', response.body); + expect(response.status).to.equal(403); expect(response.body.success).to.be.false; expect(response.body.message).to.equal('Tenant is inactive');