Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(booking-import): check the upload limits the route sets, not Nest's whole set

Maurice85aa1c91ff10
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 });
});
});