Mocking API for tests

This commit is contained in:
Tomasz Drwięga 2016-11-17 14:30:53 +01:00
parent 45c7a28585
commit afef5b5316

View File

@ -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';