Skip to content

Commit 92b045e

Browse files
committed
chore: remove MongoAbortError
1 parent da50041 commit 92b045e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

test/unit/error.test.ts

Lines changed: 1 addition & 5 deletions
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
});

test/unit/index.test.ts

Lines changed: 0 additions & 1 deletion
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)