From 61ffdb553ea89b885466b6006d5f98912827feeb Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 30 Jun 2026 11:09:19 +0200 Subject: [PATCH] test(photos): assert the forwarded Range arg on the original stream Follow-up to the Range-aware photo proxy. --- server/tests/unit/nest/files.controller.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tests/unit/nest/files.controller.test.ts b/server/tests/unit/nest/files.controller.test.ts index c81fc37a..b402e0bc 100644 --- a/server/tests/unit/nest/files.controller.test.ts +++ b/server/tests/unit/nest/files.controller.test.ts @@ -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 () => {