Skip to content

Commit 6af545c

Browse files
committed
chore: remove MongoAbortError
1 parent 703f0c7 commit 6af545c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Diff for: test/unit/error.test.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,7 @@ describe('MongoErrors', () => {
7777
expect(errorNameDescriptor).to.have.property('set').that.does.not.exist;
7878
expect(errorNameDescriptor).to.not.have.property('value');
7979
expect(errorNameDescriptor).to.have.property('get');
80-
if (errorName === 'MongoAbortError') {
81-
expect(errorNameDescriptor.get.call(undefined)).to.equal('AbortError');
82-
} else {
83-
expect(errorNameDescriptor.get.call(undefined)).to.equal(errorName);
84-
}
80+
expect(errorNameDescriptor.get.call(undefined)).to.equal(errorName);
8581
});
8682
}
8783
});

Diff for: test/unit/index.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const EXPECTED_EXPORTS = [
6060
'Long',
6161
'MaxKey',
6262
'MinKey',
63-
'MongoAbortError',
6463
'MongoAPIError',
6564
'MongoAWSError',
6665
'MongoAzureError',

0 commit comments

Comments
 (0)