import { GOLEMV1UUID } from '@config' ; import { fAccount , fAssets , fDerivedGolemMigrationTx , fNetworks } from '@fixtures' ; import { ITokenMigrationFormFull } from '@types' ; import { golemTokenMigrationConfig } from './config' ; import { createGolemMigrationTx } from './helpers' ; const defaultProps = { tokenConfig : golemTokenMigrationConfig , asset : fAssets . find ( ( { uuid } ) => uuid === GOLEMV1UUID ) ! , network : fNetworks [ 0 ] , address : '' , amount : '5' , gasLimit : '50000' , gasPrice : '5' , nonce : '' , account : fAccount , maxFeePerGas : '20' , maxPriorityFeePerGas : '1' } ; describe ( 'it creates golem token migration transactions' , ( ) => { it ( 'creates a golem migration transaction' , ( ) => { const migrationTx = createGolemMigrationTx ( defaultProps ) ; expect ( migrationTx ) . toEqual ( fDerivedGolemMigrationTx ) ; } ) ; } ) ;