import { Open } from "./open" ; import { BufferType } from "./source/bufferType" ; describe ( "Open" , ( ) => { let get ; let open ; beforeEach ( ( ) => { get = jest . fn ( ) ; const BufferTypeClass = jest . fn ( ( ) => ( { get : get , } ) ) as any ; const bufferTypeSource = new BufferTypeClass ( ) ; open = new Open ( bufferTypeSource ) ; } ) ; it ( "findCandidates" , async ( ) => { await open . findCandidates ( "" , [ ] ) ; expect ( get ) . toHaveBeenCalled ( ) ; } ) ; } ) ;