Skip to content

Commit

Permalink
Make failing front test happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nalanj committed Dec 17, 2024
1 parent 1e20715 commit 490c81a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions vitest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ class NangoActionMock {
const updatedBodyOrParams = paginateInBody ? (args.data as Record<string, any>) || {} : 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'];
}
Expand Down

0 comments on commit 490c81a

Please sign in to comment.