Skip to content

Commit 96cec89

Browse files
committed
test: fix test assertion
1 parent ba7f38a commit 96cec89

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/integration/change-streams/change_stream.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)