Skip to content

Commit

Permalink
Update test added in rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudahtt committed Mar 15, 2021
1 parent 68df6ca commit cc8238b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/transaction/TransactionController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -877,13 +877,13 @@ describe('TransactionController', () => {

it('should fetch all the transactions from an address, including incoming token transactions, but not adding the ones already in state', async () => {
globalAny.fetch = mockFetchs(MOCK_FETCH_TX_HISTORY_DATA_OK);
const controller = new TransactionController({ provider: MAINNET_PROVIDER });
const controller = new TransactionController(
MOCK_MAINNET_NETWORK.state,
MOCK_MAINNET_NETWORK.subscribe,
MOCK_MAINNET_NETWORK.getProvider,
);
const from = '0x6bf137f335ea1b8f193b8f6ea92561a60d23a207';
controller.wipeTransactions();
controller.context = {
NetworkController: MOCK_MAINNET_NETWORK,
} as any;
controller.onComposed();
controller.state.transactions = TRANSACTIONS_IN_STATE;
await controller.fetchAll(from);
expect(controller.state.transactions).toHaveLength(17);
Expand Down

0 comments on commit cc8238b

Please sign in to comment.