Skip to content

Commit

Permalink
test: failing test case for constraint notEqualTo null
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulLanjewar93 committed Dec 14, 2023
1 parent 2c2563e commit e8137a6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
24 changes: 10 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions spec/ParseLiveQuery.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1269,4 +1269,24 @@ describe('ParseLiveQuery', function () {
expect(object2.id).toBeDefined();
expect(object3.id).toBeDefined();
});

fit('matchesKeyConstraints fails when subscribing a query with constraint notEqualTo null', async () => {
await reconfigureServer({
liveQuery: {
classNames: ['TestObject'],
},
startLiveQueryServer: true,
verbose: false,
silent: true,
});

const query = new Parse.Query(TestObject);
query.notEqualTo('foo', null);
await query.subscribe();

const object1 = new TestObject();
object1.set('foo', 'bar');

await object1.save();
});
});

0 comments on commit e8137a6

Please sign in to comment.