@@ -22,7 +22,6 @@ import {
22
22
ReadPreference ,
23
23
ResumeToken
24
24
} from '../../../src' ;
25
- import { next } from '../../../src/cursor/abstract_cursor' ;
26
25
import { isHello } from '../../../src/utils' ;
27
26
import * as mock from '../../tools/mongodb-mock/index' ;
28
27
import {
@@ -953,7 +952,6 @@ describe('Change Streams', function () {
953
952
'This test only worked because of timing, changeStream.close does not remove the change listener' ;
954
953
} ) ;
955
954
956
- // TODO(andymina): ask about testing word semantics here
957
955
context ( 'iterator api' , function ( ) {
958
956
describe ( '#tryNext()' , function ( ) {
959
957
it ( 'should return null on single iteration of empty cursor' , {
@@ -1092,7 +1090,7 @@ describe('Change Streams', function () {
1092
1090
}
1093
1091
) ;
1094
1092
1095
- it . only (
1093
+ it (
1096
1094
'can be used with raw iterator API' ,
1097
1095
{ requires : { topology : '!single' } } ,
1098
1096
async function ( ) {
@@ -1112,7 +1110,7 @@ describe('Change Streams', function () {
1112
1110
const { fullDocument } = change . value ;
1113
1111
expect ( fullDocument . city ) . to . equal ( docs [ 1 ] . city ) ;
1114
1112
} catch ( error ) {
1115
- expect . fail ( 'Async could not be used with raw iterator API' )
1113
+ expect . fail ( 'Async could not be used with raw iterator API' ) ;
1116
1114
}
1117
1115
}
1118
1116
) ;
@@ -2405,7 +2403,7 @@ describe('ChangeStream resumability', function () {
2405
2403
2406
2404
await collection . insertOne ( { city : 'New York City' } ) ;
2407
2405
try {
2408
- const change = await changeStreamIterator . next ( ) ;
2406
+ await changeStreamIterator . next ( ) ;
2409
2407
expect . fail (
2410
2408
'Change stream did not throw unresumable error and did not produce any events'
2411
2409
) ;
0 commit comments