Skip to content

Commit

Permalink
test: Add test for Parse.Query.toJSON has `Parse.Query.readPreferen…
Browse files Browse the repository at this point in the history
…ce` (#2465)
  • Loading branch information
mtrezza authored Feb 22, 2025
1 parent 9a86338 commit a021d20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/__tests__/ParseQuery-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2541,6 +2541,7 @@ describe('ParseQuery', () => {
q.ascending(['a', 'b', 'c']);
q.skip(4);
q.equalTo('size', 'medium');
q.readPreference('PRIMARY', 'SECONDARY', 'SECONDARY_PREFERRED');

const json = q.toJSON();

Expand All @@ -2558,6 +2559,9 @@ describe('ParseQuery', () => {
where: {
size: 'medium',
},
readPreference: 'PRIMARY',
includeReadPreference: 'SECONDARY',
subqueryReadPreference: 'SECONDARY_PREFERRED',
});
});

Expand Down

0 comments on commit a021d20

Please sign in to comment.