{"size": 680, "ext": "js", "max_stars_repo_path": "src/Loader/test/Loader.visual.js", "max_stars_repo_name": "galezra/wix-style-react", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/Loader/test/Loader.visual.js", "max_issues_repo_name": "galezra/wix-style-react", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/Loader/test/Loader.visual.js", "max_forks_repo_name": "galezra/wix-style-react", "max_forks_repo_forks_event_min_datetime": "2021-06-06T00:17:25.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-24T21:07:17.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 21.935483871, "max_line_length": 74, "alphanum_fraction": 0.5808823529}
import React from 'react';
import Loader from '../Loader';
import { storyOfAllPermutations } from '../../../test/utils/visual/utils';
import Box from '../../Box';

const Story = props => (
  <Box>
    <Loader {...props} />
    <Box marginLeft={1} backgroundColor="#eee">
      <Loader {...props} color="white" />
    </Box>
  </Box>
);

export const runTests = (
  { themeName, testWithTheme } = { testWithTheme: i => i },
) => {
  const options = {
    testWithTheme,
    themeName,
    props: [
      'size',
      'status',
      { name: 'text', values: ['Wubba Lubba Dub Dub'] },
    ],
    skipUndefinedValue: true,
  };

  storyOfAllPermutations(Story, Loader, options);
};
