Skip to content

Commit 490c8c1

Browse files
authored
Added date support to OfflineQuery class (#1344)
* Added date support to OfflineQuery class * added integration test for offlineQuery support * Delete package-lock.json * Create package.lock * stupid patch * package-lock.json fix * package-lock.json updated once more * npm 6 is needed for successfull build Co-authored-by: Alexander Israel <>
1 parent 4a75d97 commit 490c8c1

File tree

4 files changed

+1207
-1304
lines changed

4 files changed

+1207
-1304
lines changed

integration/test/ParseLocalDatastoreTest.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2727,6 +2727,12 @@ function runTest(controller) {
27272727
q.fromLocalDatastore();
27282728
objects = await q.find();
27292729
assert.equal(objects.length, 1);
2730+
2731+
q = new Parse.Query(TestObject);
2732+
q.lessThanOrEqualTo('dateField', { $relativeTime: 'in 0 day' });
2733+
q.fromLocalDatastore();
2734+
objects = await q.find();
2735+
assert.equal(objects.length, 1);
27302736
});
27312737

27322738
it(`${controller.name} supports withinPolygon`, async () => {

0 commit comments

Comments
 (0)