mirror of
https://github.com/immich-app/immich.git
synced 2026-03-25 11:08:56 +03:00
fix: null validation (#25891)
This commit is contained in:
@@ -58,6 +58,11 @@ describe(PersonController.name, () => {
|
||||
await request(ctx.getHttpServer()).post('/people').send({ birthDate: '' });
|
||||
expect(service.create).toHaveBeenCalledWith(undefined, { birthDate: null });
|
||||
});
|
||||
|
||||
it('should map an empty color to null', async () => {
|
||||
await request(ctx.getHttpServer()).post('/people').send({ color: '' });
|
||||
expect(service.create).toHaveBeenCalledWith(undefined, { color: null });
|
||||
});
|
||||
});
|
||||
|
||||
describe('DELETE /people', () => {
|
||||
|
||||
Reference in New Issue
Block a user