Skip to content

Commit f8ce556

Browse files
author
Marvel Mathew
committed
Add integration test for multiple results
1 parent 6a09f17 commit f8ce556

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/ParseQuery.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3145,6 +3145,14 @@ describe('Parse.Query testing', () => {
31453145
.then((results) => {
31463146
expect(results.length).toBe(0);
31473147
})
3148+
.then(() => {
3149+
const q = new Parse.Query('MyCustomObject');
3150+
q.greaterThan('ttl', { $relativeTime: '3 days ago' });
3151+
return q.find({ useMasterKey: true });
3152+
})
3153+
.then((results) => {
3154+
expect(results.length).toBe(2);
3155+
})
31483156
.then(done, done.fail);
31493157
});
31503158

0 commit comments

Comments
 (0)