test(fix): fix test setup

This commit is contained in:
George Lima 2019-03-17 00:13:18 -03:00
parent e27472f042
commit aab54d6b49
3 changed files with 5 additions and 4 deletions

View File

@ -17,8 +17,8 @@ describe('Receive Actions', () => {
test('should create an action to load addresses with success', () => {
const payload = {
addresses: [
'tm0a9si0ds09gj02jj',
'smas098gk02jf0kskk',
{ address: 'tm0a9si0ds09gj02jj', balance: 10 },
{ address: 'smas098gk02jf0kskk', balance: 20 },
],
};

View File

@ -15,7 +15,7 @@ describe('<WalletAddress />', () => {
const { getByText } = render(
<ThemeProvider theme={appTheme}>
<div style={{ width: '700px' }}>
<WalletAddress address='t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1' />
<WalletAddress address='t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1' balance={2} />
</div>
</ThemeProvider>,
);

View File

@ -1,7 +1,8 @@
// @flow
import "@babel/polyfill";
// eslint-disable-next-line import/no-unresolved
require('jest-extended');
require("jest-extended");
// $FlowFixMe
jest.DEFAULT_TIMEOUT_INTERVAL = 120000;