mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: replace first and last name with single field (#4915)
This commit is contained in:
parent
413ab2c538
commit
7fca0d8da5
98 changed files with 567 additions and 1147 deletions
|
|
@ -13,15 +13,13 @@ import {
|
|||
import { testApp } from '@test/test-utils';
|
||||
import request from 'supertest';
|
||||
|
||||
const firstName = 'Immich';
|
||||
const lastName = 'Admin';
|
||||
const name = 'Immich Admin';
|
||||
const password = 'Password123';
|
||||
const email = 'admin@immich.app';
|
||||
|
||||
const adminSignupResponse = {
|
||||
id: expect.any(String),
|
||||
firstName: 'Immich',
|
||||
lastName: 'Admin',
|
||||
name: 'Immich Admin',
|
||||
email: 'admin@immich.app',
|
||||
storageLabel: 'admin',
|
||||
externalPath: null,
|
||||
|
|
@ -64,23 +62,19 @@ describe(`${AuthController.name} (e2e)`, () => {
|
|||
const invalid = [
|
||||
{
|
||||
should: 'require an email address',
|
||||
data: { firstName, lastName, password },
|
||||
data: { name, password },
|
||||
},
|
||||
{
|
||||
should: 'require a password',
|
||||
data: { firstName, lastName, email },
|
||||
data: { name, email },
|
||||
},
|
||||
{
|
||||
should: 'require a first name ',
|
||||
data: { lastName, email, password },
|
||||
},
|
||||
{
|
||||
should: 'require a last name ',
|
||||
data: { firstName, email, password },
|
||||
should: 'require a name',
|
||||
data: { email, password },
|
||||
},
|
||||
{
|
||||
should: 'require a valid email',
|
||||
data: { firstName, lastName, email: 'immich', password },
|
||||
data: { name, email: 'immich', password },
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue