File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import { expect } from 'chai' ;
22
3- import { AuthProvider , MongoRuntimeError } from '../../../mongodb' ;
3+ import { type AuthContext , AuthProvider , MongoRuntimeError } from '../../../mongodb' ;
44
55describe ( '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 ( ) {
You can’t perform that action at this time.
0 commit comments