mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(server): handle 5 digit years (#6457)
This commit is contained in:
parent
574aecc1e2
commit
6f291006e4
3 changed files with 13 additions and 13 deletions
|
|
@ -1073,6 +1073,16 @@ describe(`${AssetController.name} (e2e)`, () => {
|
|||
expect(body).toEqual(errorStub.unauthorized);
|
||||
});
|
||||
|
||||
it('should handle 5 digit years', async () => {
|
||||
const { status, body } = await request(server)
|
||||
.get('/asset/time-bucket')
|
||||
.query({ size: TimeBucketSize.MONTH, timeBucket: '+012345-01-01T00:00:00.000Z' })
|
||||
.set('Authorization', `Bearer ${user1.accessToken}`);
|
||||
|
||||
expect(status).toBe(200);
|
||||
expect(body).toEqual([]);
|
||||
});
|
||||
|
||||
// it('should fail if time bucket is invalid', async () => {
|
||||
// const { status, body } = await request(server)
|
||||
// .get('/asset/time-bucket')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue