From 490c81a140d374c82ffbfc0608e5ea276c67513f Mon Sep 17 00:00:00 2001 From: Alan Johnson Date: Tue, 17 Dec 2024 11:38:30 -0500 Subject: [PATCH] Make failing front test happy --- vitest.setup.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vitest.setup.ts b/vitest.setup.ts index d75dd66b..f945ea95 100644 --- a/vitest.setup.ts +++ b/vitest.setup.ts @@ -129,10 +129,7 @@ class NangoActionMock { const updatedBodyOrParams = paginateInBody ? (args.data as Record) || {} : args.params || {}; if (args.paginate['limit']) { - const limitParameterName = args.paginate.limit_name_in_request; - if (!limitParameterName) { - throw new Error('limit_name_in_request is required when using pagination'); - } + const limitParameterName = args.paginate.limit_name_in_request!; updatedBodyOrParams[limitParameterName] = args.paginate['limit']; }