{"size": 513, "ext": "js", "max_stars_repo_path": "tests/cli.tests.js", "max_stars_repo_name": "rdig/wordpress-update-cli", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/cli.tests.js", "max_issues_repo_name": "rdig/wordpress-update-cli", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/cli.tests.js", "max_forks_repo_name": "rdig/wordpress-update-cli", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.0882352941, "max_line_length": 60, "alphanum_fraction": 0.5886939571}
var chai = require('chai');
var executable = require('executable');
var fs = require('fs');
var cliFile = 'bin/wpa_cli.js';

describe('cli' + '\n', function() {

	describe('bin', function() {

		it('The file `' + cliFile + '` should exist', function() {

			try {

				fs.accessSync(cliFile, fs.F_OK);
				chai.expect(true).to.equal(true);

			} catch(error) {

				done(error);

			}

		});

		it('File should be executable', function() {

			chai.assert.equal(true, executable.sync(cliFile));

		});

	});

});
