update signup page
Build & Push / Pipeline Tests (push) Successful in 1m31s
Test / Type Check (all packages) (push) Successful in 52s
Build & Push / Build & Push Docker Image (push) Successful in 4m3s
Test / API Unit Tests (push) Successful in 1m2s
Test / Homepage Unit Tests (push) Successful in 43s
Test / Carplace Unit Tests (push) Successful in 41s
Test / Admin Unit Tests (push) Successful in 40s
Test / Dashboard Unit Tests (push) Successful in 42s
Test / API Integration Tests (push) Successful in 1m2s

This commit is contained in:
root
2026-07-20 23:21:24 -04:00
parent 93fba7a318
commit 7ecd85e9b7
4 changed files with 127 additions and 10 deletions
@@ -128,6 +128,9 @@ describe('auth API boundaries', () => {
it('POST /auth/account/start validates minimal signup and returns 201', async () => {
const res = await request(app).post('/api/v1/auth/account/start').send({
firstName: 'Aya',
lastName: 'Benali',
companyName: 'Atlas Cars',
email: 'owner@example.com',
password: 'super-secret',
preferredLanguage: 'fr',
@@ -141,6 +144,9 @@ describe('auth API boundaries', () => {
},
})
expect(accountService.startAccount).toHaveBeenCalledWith({
firstName: 'Aya',
lastName: 'Benali',
companyName: 'Atlas Cars',
email: 'owner@example.com',
password: 'super-secret',
preferredLanguage: 'fr',
@@ -149,6 +155,9 @@ describe('auth API boundaries', () => {
it('POST /auth/account/start rejects malformed minimal signup payloads before service execution', async () => {
const res = await request(app).post('/api/v1/auth/account/start').send({
firstName: 'Aya',
lastName: 'Benali',
companyName: 'A',
email: 'not-email',
password: 'short',
})