Skip to content

Commit 65a109a

Browse files
committed
make excludeKeys test more robust
1 parent d5e1c9f commit 65a109a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

spec/ParseQuery.spec.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3231,6 +3231,17 @@ describe('Parse.Query testing', () => {
32313231
});
32323232
expect(response.data.results[0].foo).toBeUndefined();
32333233
expect(response.data.results[0].hello).toBe('world');
3234+
3235+
const response2 = await request({
3236+
url: Parse.serverURL + '/classes/TestObject',
3237+
qs: {
3238+
excludeKeys: ['foo', 'hello'],
3239+
where: JSON.stringify({ objectId: obj.id }),
3240+
},
3241+
headers: masterKeyHeaders,
3242+
});
3243+
expect(response2.data.results[0].foo).toBeUndefined();
3244+
expect(response2.data.results[0].hello).toBeUndefined();
32343245
});
32353246

32363247
it('exclude keys with select same key', async () => {

0 commit comments

Comments
 (0)