diff --git a/test/unit/connection_string.test.ts b/test/unit/connection_string.test.ts index 65682f3b79..7520acd296 100644 --- a/test/unit/connection_string.test.ts +++ b/test/unit/connection_string.test.ts @@ -101,7 +101,7 @@ describe('Connection String', function () { expect(options).to.not.have.property('credentials'); }); - it('should omit credentials and throw a non-MongoAPIError if the only auth related option is authSource', async () => { + it('should omit credentials and not throw a MongoAPIError if the only auth related option is authSource', async () => { // The error we're looking to **not** see is // `new MongoInvalidArgumentError('No AuthProvider for ${credentials.mechanism} defined.')` // in `prepareHandshakeDocument` and/or `performInitialHandshake`.