test(photos): assert the forwarded Range arg on the original stream

Follow-up to the Range-aware photo proxy.
This commit is contained in:
Maurice
2026-06-30 11:09:19 +02:00
committed by Maurice
parent 1abc9b2bc7
commit 61ffdb553e
@@ -240,7 +240,7 @@ describe('PhotosController', () => {
await c.thumbnail(user2, '5', res);
expect(stream).toHaveBeenCalledWith(res, 1, 5, 'thumbnail');
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 () => {