Skip to content

Commit

Permalink
feat: removed package lock
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulLanjewar93 committed Dec 16, 2023
1 parent 2c2563e commit cced89c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/ParseLiveQuery.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1269,4 +1269,25 @@ describe('ParseLiveQuery', function () {
expect(object2.id).toBeDefined();
expect(object3.id).toBeDefined();
});

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

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

// Create a object and save it, this passes but server crashes afterwards
const object1 = new TestObject();
object1.set('foo', 'bar');
await object1.save();
done();
});
});

0 comments on commit cced89c

Please sign in to comment.