Skip to content

Commit 6ec28a8

Browse files
committed
tests: normalize query construction to production conditions; avoid artificial no-where case
1 parent bf70c6a commit 6ec28a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/CloudCode.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,14 +481,15 @@ describe('Cloud Code', () => {
481481
});
482482

483483
const mockObject = { id: 'test456', className: className, name: 'test' };
484+
const pq = new Parse.Query(className).withJSON({ limit: 5, skip: 1 });
484485

485486
const result = await maybeRunAfterFindTrigger(
486487
'afterFind',
487488
null,
488489
className,
489490
[mockObject],
490491
testConfig,
491-
{ limit: 5, skip: 1 },
492+
pq,
492493
{}
493494
);
494495

0 commit comments

Comments
 (0)