mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
update to latest draft, apply old upload changes
This commit is contained in:
@@ -1073,6 +1073,7 @@ describe('/upload', () => {
|
||||
expect(status).toBe(204);
|
||||
expect(headers['upload-offset']).toBe('512');
|
||||
expect(headers['upload-complete']).toBe('?0');
|
||||
expect(headers['upload-length']).toBe('512');
|
||||
expect(headers['upload-limit']).toEqual('min-size=1, max-age=259200');
|
||||
expect(headers['cache-control']).toBe('no-store');
|
||||
});
|
||||
@@ -1092,6 +1093,7 @@ describe('/upload', () => {
|
||||
const { status, headers } = await request(app).options('/upload');
|
||||
|
||||
expect(status).toBe(204);
|
||||
expect(headers['accept-patch']).toBe('application/partial-upload');
|
||||
expect(headers['upload-limit']).toEqual('min-size=1, max-age=259200');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user