{"size": 528, "ext": "js", "max_stars_repo_path": "src/styles/__tests__/box-shadow.js", "max_stars_repo_name": "exah/prop-styles-system", "max_stars_repo_stars_event_min_datetime": "2018-08-20T14:29:48.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-23T08:19:54.000Z", "max_issues_repo_path": "src/styles/__tests__/box-shadow.js", "max_issues_repo_name": "exah/prop-styles-system", "max_issues_repo_issues_event_min_datetime": "2020-11-29T01:10:41.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-02T16:07:57.000Z", "max_forks_repo_path": "src/styles/__tests__/box-shadow.js", "max_forks_repo_name": "exah/prop-styles-system", "max_forks_repo_forks_event_min_datetime": "2021-06-19T06:36:28.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-19T06:36:28.000Z"}
{"max_stars_count": 7, "max_issues_count": 4, "max_forks_count": 1, "avg_line_length": 17.0322580645, "max_line_length": 48, "alphanum_fraction": 0.5549242424}
import { boxShadow } from '../..'
import { toStyles } from '../../../test-helpers'

const theme = {
  boxShadow: {
    default: '0 0 10px rgba(0, 0, 0, 0.1)'
  }
}

test('default', () => {
  const result = boxShadow({
    theme,
    boxShadow: 'auto'
  })

  expect(toStyles(result)).toEqual({
    boxShadow: '0 0 10px rgba(0, 0, 0, 0.1)'
  })
})

test('custom', () => {
  const result = boxShadow({
    theme,
    boxShadow: '0 0 100px black'
  })

  expect(toStyles(result)).toEqual({
    boxShadow: '0 0 100px black'
  })
})
