We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6aae6 commit c5dd665Copy full SHA for c5dd665
spec/CloudCode.spec.js
@@ -237,7 +237,9 @@ describe('Cloud Code', () => {
237
expect(req.objects).toBeDefined();
238
expect(req.objects[0].get('foo')).toBe('bar');
239
});
240
- const newObj = await new Parse.Query('beforeFind').get('objId');
+ const testObj = new Parse.Object('beforeFind');
241
+ await testObj.save();
242
+ const newObj = await new Parse.Query('beforeFind').get(testObj.id);
243
expect(newObj.className).toBe('TestObject');
244
expect(newObj.toJSON()).toEqual({ foo: 'bar' });
245
await newObj.save();
0 commit comments