Skip to content

Commit 52d9447

Browse files
committed
test: fix property access
1 parent bdf3cd7 commit 52d9447

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/integration/retryable-reads/retryable_reads.spec.prose.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
12
import { expect } from 'chai';
23

34
import { Collection, MongoClient } from '../../../src';
@@ -121,7 +122,7 @@ describe('Retryable Reads Spec Prose', () => {
121122
'connectionCheckOutFailed',
122123
'expected 5) checkout 2 to fail'
123124
);
124-
expect(nextEvent).to.have.deep.property('event.reason', 'connectionError');
125+
expect(nextEvent!.event).to.have.property('reason', 'connectionError');
125126

126127
// 8. Via Command Monitoring, assert that exactly three find CommandStartedEvents were observed in total.
127128
const observedFindCommandStartedEvents = commandStartedEvents.filter(

test/integration/retryable-writes/retryable_writes.spec.prose.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
12
import { expect } from 'chai';
23

34
import { Collection, MongoClient, MongoError, MongoServerError } from '../../../src';
@@ -174,7 +175,7 @@ describe('Retryable Writes Spec Prose', () => {
174175
'connectionCheckOutFailed',
175176
'expected 5) checkout 2 to fail'
176177
);
177-
expect(nextEvent).to.have.deep.property('event.reason', 'connectionError');
178+
expect(nextEvent!.event).to.have.property('reason', 'connectionError');
178179

179180
// viii. Via Command Monitoring, assert that exactly three insert CommandStartedEvents were observed in total.
180181
const observedInsertCommandStartedEvents = commandStartedEvents.filter(

0 commit comments

Comments
 (0)