mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
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:
@@ -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 });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user