@@ -2018,15 +2018,15 @@ describe('ChangeStream resumability', function () {
2018
2018
} as FailPoint ) ;
2019
2019
2020
2020
expect ( changeStream . cursor )
2021
- . to . have . property ( 'options ' )
2021
+ . to . have . property ( 'changeStreamCursorOptions ' )
2022
2022
. that . containSubset ( changeStreamResumeOptions ) ;
2023
2023
2024
2024
await collection . insertOne ( { name : 'bailey' } ) ;
2025
2025
2026
2026
await changeStream . next ( ) ;
2027
2027
2028
2028
expect ( changeStream . cursor )
2029
- . to . have . property ( 'options ' )
2029
+ . to . have . property ( 'changeStreamCursorOptions ' )
2030
2030
. that . containSubset ( changeStreamResumeOptions ) ;
2031
2031
}
2032
2032
) ;
@@ -2182,15 +2182,15 @@ describe('ChangeStream resumability', function () {
2182
2182
} as FailPoint ) ;
2183
2183
2184
2184
expect ( changeStream . cursor )
2185
- . to . have . property ( 'options ' )
2185
+ . to . have . property ( 'changeStreamCursorOptions ' )
2186
2186
. that . containSubset ( changeStreamResumeOptions ) ;
2187
2187
2188
2188
await collection . insertOne ( { name : 'bailey' } ) ;
2189
2189
2190
2190
await changeStream . hasNext ( ) ;
2191
2191
2192
2192
expect ( changeStream . cursor )
2193
- . to . have . property ( 'options ' )
2193
+ . to . have . property ( 'changeStreamCursorOptions ' )
2194
2194
. that . containSubset ( changeStreamResumeOptions ) ;
2195
2195
}
2196
2196
) ;
@@ -2360,15 +2360,15 @@ describe('ChangeStream resumability', function () {
2360
2360
} as FailPoint ) ;
2361
2361
2362
2362
expect ( changeStream . cursor )
2363
- . to . have . property ( 'options ' )
2363
+ . to . have . property ( 'changeStreamCursorOptions ' )
2364
2364
. that . containSubset ( changeStreamResumeOptions ) ;
2365
2365
2366
2366
await collection . insertOne ( { name : 'bailey' } ) ;
2367
2367
2368
2368
await changeStream . tryNext ( ) ;
2369
2369
2370
2370
expect ( changeStream . cursor )
2371
- . to . have . property ( 'options ' )
2371
+ . to . have . property ( 'changeStreamCursorOptions ' )
2372
2372
. that . containSubset ( changeStreamResumeOptions ) ;
2373
2373
}
2374
2374
) ;
@@ -2504,14 +2504,14 @@ describe('ChangeStream resumability', function () {
2504
2504
} as FailPoint ) ;
2505
2505
2506
2506
expect ( changeStream . cursor )
2507
- . to . have . property ( 'options ' )
2507
+ . to . have . property ( 'changeStreamCursorOptions ' )
2508
2508
. that . containSubset ( changeStreamResumeOptions ) ;
2509
2509
2510
2510
await collection . insertOne ( { city : 'New York City' } ) ;
2511
2511
await changeStreamIterator . next ( ) ;
2512
2512
2513
2513
expect ( changeStream . cursor )
2514
- . to . have . property ( 'options ' )
2514
+ . to . have . property ( 'changeStreamCursorOptions ' )
2515
2515
. that . containSubset ( changeStreamResumeOptions ) ;
2516
2516
}
2517
2517
) ;
@@ -2643,7 +2643,7 @@ describe('ChangeStream resumability', function () {
2643
2643
} as FailPoint ) ;
2644
2644
2645
2645
expect ( changeStream . cursor )
2646
- . to . have . property ( 'options ' )
2646
+ . to . have . property ( 'changeStreamCursorOptions ' )
2647
2647
. that . containSubset ( changeStreamResumeOptions ) ;
2648
2648
2649
2649
const changes = once ( changeStream , 'change' ) ;
@@ -2654,7 +2654,7 @@ describe('ChangeStream resumability', function () {
2654
2654
await changes ;
2655
2655
2656
2656
expect ( changeStream . cursor )
2657
- . to . have . property ( 'options ' )
2657
+ . to . have . property ( 'changeStreamCursorOptions ' )
2658
2658
. that . containSubset ( changeStreamResumeOptions ) ;
2659
2659
}
2660
2660
) ;
0 commit comments