Fix jwt-token
This commit is contained in:
@@ -272,6 +272,9 @@ describe('Detections Routes', () => {
|
|||||||
.get('/detections')
|
.get('/detections')
|
||||||
.set('Authorization', `Bearer ${token}`);
|
.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.status).to.equal(403);
|
||||||
expect(response.body.success).to.be.false;
|
expect(response.body.success).to.be.false;
|
||||||
expect(response.body.message).to.equal('Tenant is inactive');
|
expect(response.body.message).to.equal('Tenant is inactive');
|
||||||
|
|||||||
Reference in New Issue
Block a user