import wrapNativePostgresCallAsync from '../wrapNativePostgresCallAsync' ; describe ( wrapNativePostgresCallAsync , ( ) => { it ( 'rethrows literals' , async ( ) => { const throwingFn = async ( ) : Promise < void > => { throw 'hello' ; } ; let capturedThrownThing ; try { await wrapNativePostgresCallAsync ( throwingFn ) ; } catch ( e ) { capturedThrownThing = e ; } expect ( capturedThrownThing ) . not . toBeInstanceOf ( Error ) ; expect ( capturedThrownThing ) . toEqual ( 'hello' ) ; } ) ; } ) ;