Skip to content

Commit 1f38a9d

Browse files
Fixed failing unit test
1 parent b54b9cd commit 1f38a9d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/cmap/command_monitoring_events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ function extractReply(command: WriteProtocolMessageType, reply?: Document) {
302302
return deepCopy(reply.result ? reply.result : reply);
303303
}
304304

305-
export function extractConnectionDetails(connection: Connection) {
305+
function extractConnectionDetails(connection: Connection) {
306306
let connectionId;
307307
if ('id' in connection) {
308308
connectionId = connection.id;

test/unit/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ const EXPECTED_EXPORTS = [
116116
'ServerApiVersion',
117117
'ServerClosedEvent',
118118
'ServerDescriptionChangedEvent',
119+
'ServerDiscoveryAndMonitoringEvent',
119120
'ServerHeartbeatFailedEvent',
120121
'ServerHeartbeatStartedEvent',
121122
'ServerHeartbeatSucceededEvent',

0 commit comments

Comments
 (0)