{"size": 315, "ext": "js", "max_stars_repo_path": "tests/array/ensureArray.js", "max_stars_repo_name": "hamidyou/kyanite", "max_stars_repo_stars_event_min_datetime": "2018-06-12T21:31:21.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-19T10:21:23.000Z", "max_issues_repo_path": "tests/array/ensureArray.js", "max_issues_repo_name": "hamidyou/kyanite", "max_issues_repo_issues_event_min_datetime": "2018-07-07T18:17:42.000Z", "max_issues_repo_issues_event_max_datetime": "2021-11-15T19:08:11.000Z", "max_forks_repo_path": "tests/array/ensureArray.js", "max_forks_repo_name": "hamidyou/kyanite", "max_forks_repo_forks_event_min_datetime": "2019-06-01T02:13:40.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-30T21:33:00.000Z"}
{"max_stars_count": 32, "max_issues_count": 158, "max_forks_count": 4, "avg_line_length": 26.25, "max_line_length": 54, "alphanum_fraction": 0.6095238095}
import ensureArray from '../../src/array/ensureArray'
import test from 'tape'

test('ensureArray -- Basic functionality', t => {
  t.same(ensureArray([1]), [1])
  t.same(ensureArray(1), [1])
  t.same(ensureArray(), [])
  t.same(ensureArray(null), [])
  t.same(ensureArray('test'), ['test'])
  t.end()
})
