Fix jwt-token
This commit is contained in:
@@ -37,6 +37,7 @@ 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 });
|
||||
|
||||
Reference in New Issue
Block a user