import { renderHook , } from '@testing-library/react-hooks' ; import { useGnosisSafe } from './useGnosisSafe' ; const INPUT_ENTROPY_ARRAY = [ 21 , 31 , 12 , 14 , 16 , 30 , 22 , 20 , 21 , 31 , 12 , 14 , 16 , 30 , 22 , 20 , ] ; test ( 'does nothing without randomBytes' , async ( ) => { const { result } = renderHook ( ( ) => useGnosisSafe ( [ '0xabc123def' ] , 1 , new Uint8Array ( INPUT_ENTROPY_ARRAY ) ) ) ; const { address , hasError } = await result . current ; expect ( address ) . toEqual ( '' ) ; expect ( hasError ) . toEqual ( false ) ; } ) ;