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 () {
170
170
}
171
171
} ) ;
172
172
173
- it ( 'contains a wallTtime date property on the change' , {
173
+ it ( 'contains a wallTime date property on the change' , {
174
174
metadata : { requires : { topology : 'replicaset' , mongodb : '>=6.0.0' } } ,
175
175
async test ( ) {
176
176
const collection = db . collection ( 'wallTimeTest' ) ;
@@ -186,10 +186,7 @@ describe('Change Streams', function () {
186
186
await changeStream . close ( ) ;
187
187
188
188
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 ) ;
193
190
}
194
191
} ) ;
195
192
You can’t perform that action at this time.
0 commit comments