From eb446809bb4fba80ca305d0097cb53ba74d8a3f7 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Tue, 16 Sep 2025 07:40:49 +0200 Subject: [PATCH] Fix jwt-token --- server/tests/routes/auth.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tests/routes/auth.test.js b/server/tests/routes/auth.test.js index 96d1270..ea03848 100644 --- a/server/tests/routes/auth.test.js +++ b/server/tests/routes/auth.test.js @@ -37,7 +37,7 @@ describe('Auth Routes', () => { const response = await request(app) .post('/auth/login') - .set('x-tenant-id', 'test-tenant') // Set tenant via header for test + .set('Host', 'test-tenant.example.com') // Use fake domain for subdomain extraction .send({ username: 'testuser', password: 'password'