Skip to content

Commit 7710f64

Browse files
committed
pass without modification to JS SDK
1 parent 74cb902 commit 7710f64

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

spec/ParseQuery.hint.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ describe_only_db('mongo')('Parse.Query hint', () => {
153153
});
154154
let response = await request(options);
155155
let explain = response.data.results;
156-
expect(explain.queryPlanner.winningPlan.inputStage.stage).toBe('COLLSCAN');
156+
expect(explain[0].queryPlanner.winningPlan.inputStage.stage).toBe('COLLSCAN');
157157

158158
options = Object.assign({}, masterKeyOptions, {
159159
url: Parse.serverURL + '/classes/TestObject',
@@ -163,8 +163,8 @@ describe_only_db('mongo')('Parse.Query hint', () => {
163163
},
164164
});
165165
response = await request(options);
166-
explain = response.data.results[0];
167-
expect(explain.queryPlanner.winningPlan.inputStage.inputStage.indexName).toBe('_id_');
166+
explain = response.data.results;
167+
expect(explain[0].queryPlanner.winningPlan.inputStage.inputStage.indexName).toBe('_id_');
168168
});
169169

170170
it_only_mongodb_version('<4.4')('query aggregate with hint (rest)', async () => {

spec/ParseQuery.spec.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5214,10 +5214,7 @@ describe('Parse.Query testing', () => {
52145214
const query = new Parse.Query('_User');
52155215
query.equalTo('objectId', user.id);
52165216
query.explain();
5217-
//First
5218-
const result = await query.first();
5219-
expect(result.executionStats).not.toBeUndefined();
5220-
//Find
5217+
//Verify
52215218
const results = await query.find();
52225219
expect(results[0].executionStats).not.toBeUndefined();
52235220
});

0 commit comments

Comments
 (0)