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
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:
@@ -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',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user