Skip to content

Commit bffe34a

Browse files
committed
rm ts-expect-error
1 parent 9085934 commit bffe34a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/unit/cmap/auth/auth_provider.test.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import { expect } from 'chai';
22

3-
import { AuthProvider, MongoRuntimeError } from '../../../mongodb';
3+
import { type AuthContext, AuthProvider, MongoRuntimeError } from '../../../mongodb';
44

55
describe('AuthProvider', function () {
66
describe('#reauth', function () {
77
context('when the provider is already reauthenticating', function () {
8-
//@ts-expect-error: cannot make an instance of an abstract class
9-
const provider = new AuthProvider();
8+
const provider = new (class extends AuthProvider {
9+
override auth(_context: AuthContext): Promise<void> {
10+
throw new Error('Method not implemented.');
11+
}
12+
})();
13+
1014
const context = { reauthenticating: true };
1115

1216
it('returns an error', async function () {

0 commit comments

Comments
 (0)