fix issues

This commit is contained in:
2026-01-02 00:21:24 +01:00
parent 79913bb45e
commit 8693dde21e
46 changed files with 1680 additions and 302 deletions

View File

@@ -40,7 +40,7 @@ describe('Auth session (HTTP, inmemory)', () => {
const signupRes = await agent
.post('/auth/signup')
.send({ email: 'u1@gridpilot.local', password: 'pw1', displayName: 'User 1' })
.send({ email: 'u1@gridpilot.local', password: 'Password123!', displayName: 'John Smith' })
.expect(201);
const setCookie = signupRes.headers['set-cookie'] as string[] | undefined;
@@ -52,7 +52,7 @@ describe('Auth session (HTTP, inmemory)', () => {
token: expect.stringMatching(/^gp_/),
user: {
email: 'u1@gridpilot.local',
displayName: 'User 1',
displayName: 'John Smith',
userId: expect.any(String),
},
});
@@ -75,7 +75,7 @@ describe('Auth session (HTTP, inmemory)', () => {
user: {
userId: 'driver-1',
email: 'admin@gridpilot.local',
displayName: 'Admin',
displayName: 'Alex Martinez',
},
});