import { Address } from '@celo/base/lib/address' ; import { newKitFromWeb3 } from '@celo/contractkit' ; import { assumeOwnership } from '@celo/contractkit/lib/test-utils/transferownership' ; import { testWithGanache } from '@celo/dev-utils/lib/ganache-test' ; import Web3 from 'web3' ; import GetBuyAmount from './get-buy-amount' ; testWithGanache ( 'grandamento:get-buy-amount cmd' , ( web3 ) => { const kit = newKitFromWeb3 ( web3 ) ; let accounts = [ ] ; beforeAll ( async ( ) => { accounts = await web3 . eth . getAccounts ( ) ; kit . defaultAccount = accounts [ 0 ] ; } ) ; beforeEach ( async ( ) => { await assumeOwnership ( web3 , accounts [ 0 ] ) ; } ) ; it ( 'gets the buy amount' , async ( ) => { await GetBuyAmount . run ( [ '--sellCelo' , 'true' , '--stableToken' , 'cusd' , '--value' , '100000000000000000000000' , ] ) ; } ) ; } ) ;