{"size": 367, "ext": "js", "max_stars_repo_path": "test/validate-flags.test.js", "max_stars_repo_name": "contactlab/onesky-cli", "max_stars_repo_stars_event_min_datetime": "2017-08-08T15:26:56.000Z", "max_stars_repo_stars_event_max_datetime": "2018-02-05T21:34:28.000Z", "max_issues_repo_path": "test/validate-flags.test.js", "max_issues_repo_name": "contactlab/onesky-cli", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/validate-flags.test.js", "max_forks_repo_name": "contactlab/onesky-cli", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.2307692308, "max_line_length": 69, "alphanum_fraction": 0.6294277929}
import test from 'ava';
import f from './../src/lib/validate-flags';

test('error message when not a string', t => {
	const err = f({config: true, path: true});
	t.is(err, 'Param [config] must be a string. Found: {config: true}');
});

test('false when flags are correct', t => {
	const err = f({config: 'this/is/string', path: 'this/is/string'});
	t.false(err);
});
