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.
This commit is contained in:
Maurice
2026-11-26 11:26:35 +01:00
parent de9901d941
commit 85aa1c91ff
@@ -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 });
});
});