mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-30 18:46:00 +00:00
test(photos): assert the forwarded Range arg on the original stream
Follow-up to the Range-aware photo proxy.
This commit is contained in:
@@ -240,7 +240,7 @@ describe('PhotosController', () => {
|
|||||||
await c.thumbnail(user2, '5', res);
|
await c.thumbnail(user2, '5', res);
|
||||||
expect(stream).toHaveBeenCalledWith(res, 1, 5, 'thumbnail');
|
expect(stream).toHaveBeenCalledWith(res, 1, 5, 'thumbnail');
|
||||||
await c.original(user2, '5', res);
|
await c.original(user2, '5', res);
|
||||||
expect(stream).toHaveBeenCalledWith(res, 1, 5, 'original');
|
expect(stream).toHaveBeenCalledWith(res, 1, 5, 'original', undefined);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('info writes the data, maps a service error', async () => {
|
it('info writes the data, maps a service error', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user