From 30f95431fa9d47a31e2a799844fe71a4e8c160f7 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Tue, 16 Sep 2025 22:28:19 +0200 Subject: [PATCH] Fix jwt-token --- server/tests/setup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tests/setup.js b/server/tests/setup.js index 5443344..4d9a5c8 100644 --- a/server/tests/setup.js +++ b/server/tests/setup.js @@ -150,8 +150,8 @@ async function createTestUser(userData = {}) { } const defaultUserData = { - username: 'testuser', - email: 'test@example.com', + username: userData.username || `testuser-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, + email: userData.email || `test-${Date.now()}-${Math.random().toString(36).substr(2, 9)}@example.com`, password_hash: '$2b$10$dummyHashForTestingOnly', role: 'admin', tenant_id: tenant.id,