{"size": 711, "ext": "js", "max_stars_repo_path": "src/client/components/Balances/__tests__/index.test.js", "max_stars_repo_name": "petermikitsh/etherscan", "max_stars_repo_stars_event_min_datetime": "2018-07-24T19:41:39.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-14T06:47:00.000Z", "max_issues_repo_path": "src/client/components/Balances/__tests__/index.test.js", "max_issues_repo_name": "petermikitsh/etherscan", "max_issues_repo_issues_event_min_datetime": "2020-07-16T07:21:53.000Z", "max_issues_repo_issues_event_max_datetime": "2020-09-05T06:23:06.000Z", "max_forks_repo_path": "src/client/components/Balances/__tests__/index.test.js", "max_forks_repo_name": "petermikitsh/etherscan", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 17, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 26.3333333333, "max_line_length": 65, "alphanum_fraction": 0.5893108298}
import React from 'react';
import TestRenderer from 'react-test-renderer';
import Balances from '../index';
import ContextProvider from '../../../__tests__/ContextProvider';

describe('src/client/components/Balances', async () => {
  test('should render', () => {
    const props = {
      balances: [
        {
          balance: '10000000000',
          id: '0x7658ef9aa7817e1ba390c5ba3c526115d25452b3',
          updatedAt: '2018-07-22T01:22:08.245Z',
        },
      ],
      onSubmit: () => {},
    };
    const component = TestRenderer.create(
      <ContextProvider>
        <Balances {...props} />
      </ContextProvider>,
    );
    expect(component).toBeTruthy();
    component.unmount();
  });
});
