From 85aa1c91ff10a2e8e2ce51a6ea76637ae99d8b9b Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 26 Nov 2026 11:26:35 +0100 Subject: [PATCH] test(booking-import): check the upload limits the route sets, not Nest's whole set NestJS 11.2.12 adds its default parts limit to every multer interceptor, so the options hold one more key than the route names. --- .../nest/booking-import/reservation-import.controller.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tests/unit/nest/booking-import/reservation-import.controller.test.ts b/server/tests/unit/nest/booking-import/reservation-import.controller.test.ts index 613af1027..6592a85a0 100644 --- a/server/tests/unit/nest/booking-import/reservation-import.controller.test.ts +++ b/server/tests/unit/nest/booking-import/reservation-import.controller.test.ts @@ -122,6 +122,6 @@ describe('ReservationImportController upload options', () => { it.each(['preview', 'previewAsync'] as const)('%s decodes non-ASCII filenames as UTF-8', (handler) => { const multer = multerOf(handler); expect(multer.defParamCharset).toBe('utf8'); - expect(multer.limits).toEqual({ fileSize: 10 * 1024 * 1024, files: 5 }); + expect(multer.limits).toMatchObject({ fileSize: 10 * 1024 * 1024, files: 5 }); }); });