Fix jwt-token

This commit is contained in:
2025-09-16 21:59:32 +02:00
parent c7484ead5f
commit 9857249668
2 changed files with 11 additions and 19 deletions

View File

@@ -39,7 +39,6 @@ describe('Detections Routes', () => {
describe('GET /detections', () => {
it('should return detections for user tenant', async () => {
const tenant = await createTestTenant({ slug: 'test-tenant' });
console.log('🔍 Test - Created tenant:', { id: tenant.id, slug: tenant.slug });
const user = await createTestUser({ tenant_id: tenant.id });
const device = await createTestDevice({ tenant_id: tenant.id });
const detection = await createTestDetection({ device_id: device.id });
@@ -49,9 +48,6 @@ describe('Detections Routes', () => {
.get('/detections')
.set('Authorization', `Bearer ${token}`);
console.log('🔍 Test - Response status:', response.status);
console.log('🔍 Test - Response body:', response.body);
expect(response.status).to.equal(200);
expect(response.body.success).to.be.true;
expect(response.body.data.detections).to.be.an('array');