{"size": 706, "ext": "js", "max_stars_repo_path": "src/@ui/Audio/Audio.tests.js", "max_stars_repo_name": "NewSpring/Eli", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/@ui/Audio/Audio.tests.js", "max_issues_repo_name": "NewSpring/Eli", "max_issues_repo_issues_event_min_datetime": "2019-05-15T15:23:00.000Z", "max_issues_repo_issues_event_max_datetime": "2019-05-15T16:05:27.000Z", "max_forks_repo_path": "src/@ui/Audio/Audio.tests.js", "max_forks_repo_name": "NewSpring/Eli", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 22.7741935484, "max_line_length": 63, "alphanum_fraction": 0.5509915014}
import React from 'react';
import renderer from 'react-test-renderer';
import { View } from 'react-native';
import Providers from '@ui/TestProviders';
import Icon from '@ui/Icon';
import Audio from '.';

it('renders correctly', () => {
  const tree = renderer.create(
    <Providers>
      <Audio source="https://www.w3schools.com/html/horse.mp3">
        <Audio.Play>
          <View>
            <Icon name="play" />
          </View>
        </Audio.Play>

        <Audio.Pause>
          <View>
            <Icon name="pause" />
          </View>
        </Audio.Pause>

        <Audio.Seeker />
      </Audio>
    </Providers>,
  );
  // expect(true).toBe(true);
  expect(tree).toMatchSnapshot();
});
