@@ -54,13 +54,13 @@ describe('Tokenizer Database Tests', function() {
54
54
executionStats . nReturned . should . equal ( 1 ) ;
55
55
executionStats . totalKeysExamined . should . equal ( 1 ) ;
56
56
executionStats . totalDocsExamined . should . equal ( 1 ) ;
57
- const { executionStages : targetStage } = executionStats ;
57
+ let { executionStages : targetStage } = executionStats ;
58
58
// only mongodb 8+ has 'EXPRESS_IXSCAN'
59
59
if ( targetStage . stage === 'EXPRESS_IXSCAN' ) {
60
60
targetStage . keyPattern . should . eql (
61
61
'{ tokenizer.state: 1 }' ) ;
62
62
} else {
63
- targetStage = executionStages . inputStage . inputStage ;
63
+ targetStage = executionStats . executionStages . inputStage . inputStage ;
64
64
targetStage . stage . should . equal ( 'IXSCAN' ) ;
65
65
targetStage . keyPattern . should . eql (
66
66
{ 'tokenizer.state' : 1 } ) ;
@@ -78,13 +78,13 @@ describe('Tokenizer Database Tests', function() {
78
78
executionStats . nReturned . should . equal ( 1 ) ;
79
79
executionStats . totalKeysExamined . should . equal ( 1 ) ;
80
80
executionStats . totalDocsExamined . should . equal ( 1 ) ;
81
- const { executionStages : targetStage } = executionStats ;
81
+ let { executionStages : targetStage } = executionStats ;
82
82
// only mongodb 8+ has 'EXPRESS_IXSCAN'
83
83
if ( targetStage . stage === 'EXPRESS_IXSCAN' ) {
84
84
targetStage . keyPattern . should . eql (
85
85
'{ tokenizer.state: 1 }' ) ;
86
86
} else {
87
- targetStage = executionStages . inputStage . inputStage ;
87
+ targetStage = executionStats . executionStages . inputStage . inputStage ;
88
88
targetStage . stage . should . equal ( 'IXSCAN' ) ;
89
89
targetStage . keyPattern . should . eql (
90
90
{ 'tokenizer.state' : 1 } ) ;
0 commit comments