{"size": 411, "ext": "js", "max_stars_repo_path": "tests/get-device-by-orientation.test.js", "max_stars_repo_name": "mrcgrtz/create-launch-images", "max_stars_repo_stars_event_min_datetime": "2020-05-27T16:23:48.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-27T16:23:48.000Z", "max_issues_repo_path": "tests/get-device-by-orientation.test.js", "max_issues_repo_name": "mrcgrtz/create-launch-images", "max_issues_repo_issues_event_min_datetime": "2022-01-03T06:02:06.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-28T06:53:42.000Z", "max_forks_repo_path": "tests/get-device-by-orientation.test.js", "max_forks_repo_name": "mrcgrtz/create-launch-images", "max_forks_repo_forks_event_min_datetime": "2021-02-01T03:59:30.000Z", "max_forks_repo_forks_event_max_datetime": "2021-02-01T03:59:30.000Z"}
{"max_stars_count": 1, "max_issues_count": 25, "max_forks_count": 1, "avg_line_length": 21.6315789474, "max_line_length": 73, "alphanum_fraction": 0.7177615572}
import test from 'ava';
import getDeviceByOrientation from '../src/get-device-by-orientation.js';

const orientations = [
	'portrait',
	'portrait-primary',
	'portrait-secondary',
	'landscape',
	'landscape-primary',
	'landscape-secondary',
	'any',
];

for (const orientation of orientations) {
	test(`Gets devices for ${orientation} orientation`, t => {
		t.snapshot(getDeviceByOrientation(orientation));
	});
}
