@@ -4121,7 +4121,7 @@ describe('Cursor', function () {
4121
4121
. then ( ( ) => collection . insertMany ( docs ) )
4122
4122
. then ( ( ) => {
4123
4123
cursor = collection . find ( ) ;
4124
- return cursor . transformStream ( transformParam ) ;
4124
+ return cursor . stream ( transformParam ) ;
4125
4125
} )
4126
4126
. then ( stream => {
4127
4127
stream . on ( 'data' , function ( doc ) {
@@ -4141,7 +4141,7 @@ describe('Cursor', function () {
4141
4141
} ) ;
4142
4142
} ;
4143
4143
4144
- it ( 'transformStream should apply the supplied transformation function to each document in the stream' , function ( done ) {
4144
+ it ( 'stream should apply the supplied transformation function to each document in the stream' , function ( done ) {
4145
4145
const configuration = this . configuration ;
4146
4146
const client = configuration . newClient ( { w : 1 } , { poolSize : 1 , auto_reconnect : false } ) ;
4147
4147
const expectedDocs = [
@@ -4152,15 +4152,15 @@ describe('Cursor', function () {
4152
4152
const config = {
4153
4153
client : client ,
4154
4154
configuration : configuration ,
4155
- collectionName : 'transformStream -test-transform' ,
4155
+ collectionName : 'stream -test-transform' ,
4156
4156
transformFunc : doc => ( { _id : doc . _id , b : doc . a . b , c : doc . a . c } ) ,
4157
4157
expectedSet : new Set ( expectedDocs )
4158
4158
} ;
4159
4159
4160
4160
testTransformStream ( config , done ) ;
4161
4161
} ) ;
4162
4162
4163
- it ( 'transformStream should return a stream of unmodified docs if no transform function applied' , function ( done ) {
4163
+ it ( 'stream should return a stream of unmodified docs if no transform function applied' , function ( done ) {
4164
4164
const configuration = this . configuration ;
4165
4165
const client = configuration . newClient ( { w : 1 } , { poolSize : 1 , auto_reconnect : false } ) ;
4166
4166
const expectedDocs = [
0 commit comments