Skip to content

Commit e8137a6

Browse files
test: failing test case for constraint notEqualTo null
1 parent 2c2563e commit e8137a6

File tree

2 files changed

+30
-14
lines changed

2 files changed

+30
-14
lines changed

package-lock.json

+10-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/ParseLiveQuery.spec.js

+20
Original file line numberDiff line numberDiff line change
@@ -1269,4 +1269,24 @@ describe('ParseLiveQuery', function () {
12691269
expect(object2.id).toBeDefined();
12701270
expect(object3.id).toBeDefined();
12711271
});
1272+
1273+
fit('matchesKeyConstraints fails when subscribing a query with constraint notEqualTo null', async () => {
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+
const object1 = new TestObject();
1288+
object1.set('foo', 'bar');
1289+
1290+
await object1.save();
1291+
});
12721292
});

0 commit comments

Comments
 (0)