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 () => {