File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ describe('TransferErc20', () => {
112112 describe ( 'TransferErc20' , ( ) => {
113113 test ( 'should add a transaction to the queue to transfer an erc20 token with specified token address to a specified receiving address' , async ( ) => {
114114 const addTransactionSpy = spy ( target , 'addTransaction' ) ;
115+ erc20Mock . mock ( 'transfer' , Promise . resolve ( 'Transfer' ) ) ;
115116 // Real call
116117 await target . prepareTransactions ( ) ;
117118
@@ -153,6 +154,8 @@ describe('TransferErc20', () => {
153154 wrappersMock . mock ( 'isTestnet' , Promise . resolve ( true ) ) ;
154155 polyTokenMock . mock ( 'address' , Promise . resolve ( params . tokenAddress ) ) ;
155156 erc20Mock . mock ( 'balanceOf' , Promise . resolve ( new BigNumber ( 2 ) ) ) ;
157+ erc20Mock . mock ( 'transfer' , Promise . resolve ( 'Transfer' ) ) ;
158+ wrappersMock . mock ( 'getPolyTokens' , Promise . resolve ( 'GetPolyTokens' ) ) ;
156159 const addTransactionSpy = spy ( target , 'addTransaction' ) ;
157160 // Real call
158161 await target . prepareTransactions ( ) ;
You can’t perform that action at this time.
0 commit comments