Fix jwt-token

This commit is contained in:
2025-09-17 05:37:08 +02:00
parent f29b2d98bc
commit fc3808f848
2 changed files with 6 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ describe('Detections Routes', () => {
describe('GET /detections', () => {
it('should return detections for user tenant', async () => {
const tenant = await createTestTenant({ slug: 'test-tenant' });
console.log('🔍 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 });