File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
test/integration/change-streams Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ describe('Change Streams', function () {
170170 }
171171 } ) ;
172172
173- it ( 'contains a wallTtime date property on the change' , {
173+ it ( 'contains a wallTime date property on the change' , {
174174 metadata : { requires : { topology : 'replicaset' , mongodb : '>=6.0.0' } } ,
175175 async test ( ) {
176176 const collection = db . collection ( 'wallTimeTest' ) ;
@@ -186,10 +186,7 @@ describe('Change Streams', function () {
186186 await changeStream . close ( ) ;
187187
188188 expect ( change ) . to . have . property ( 'wallTime' ) ;
189- // For cases where it's not undefined we check it's a Date.
190- if ( change . wallTime ) {
191- expect ( change . wallType ) . to . be . instanceOf ( Date ) ;
192- }
189+ expect ( change . wallTime ) . to . be . instanceOf ( Date ) ;
193190 }
194191 } ) ;
195192
You can’t perform that action at this time.
0 commit comments