Skip to content

Commit cced89c

Browse files
feat: removed package lock
1 parent 2c2563e commit cced89c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Diff for: spec/ParseLiveQuery.spec.js

+21
Original file line numberDiff line numberDiff line change
@@ -1269,4 +1269,25 @@ describe('ParseLiveQuery', function () {
12691269
expect(object2.id).toBeDefined();
12701270
expect(object3.id).toBeDefined();
12711271
});
1272+
1273+
it('matchesKeyConstraints fails when subscribing a query with constraint notEqualTo null', async done => {
1274+
await reconfigureServer({
1275+
liveQuery: {
1276+
classNames: ['TestObject'],
1277+
},
1278+
startLiveQueryServer: true,
1279+
verbose: false,
1280+
silent: true,
1281+
});
1282+
1283+
const query = new Parse.Query(TestObject);
1284+
query.notEqualTo('foo', null);
1285+
await query.subscribe();
1286+
1287+
// Create a object and save it, this passes but server crashes afterwards
1288+
const object1 = new TestObject();
1289+
object1.set('foo', 'bar');
1290+
await object1.save();
1291+
done();
1292+
});
12721293
});

0 commit comments

Comments
 (0)