Mocking API for tests
This commit is contained in:
parent
45c7a28585
commit
afef5b5316
@ -18,6 +18,13 @@ import React from 'react';
|
|||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
|
|
||||||
import '../../../environment/tests';
|
import '../../../environment/tests';
|
||||||
|
import EthApi from '../../../api';
|
||||||
|
|
||||||
|
// Mock API for tests
|
||||||
|
import * as Api from '../parity';
|
||||||
|
Api.api = {
|
||||||
|
util: EthApi.prototype.util
|
||||||
|
};
|
||||||
|
|
||||||
import BigNumber from 'bignumber.js';
|
import BigNumber from 'bignumber.js';
|
||||||
import { Transaction, LocalTransaction } from './transaction';
|
import { Transaction, LocalTransaction } from './transaction';
|
||||||
|
Loading…
Reference in New Issue
Block a user