{"size": 623, "ext": "js", "max_stars_repo_path": "packages/eslint-plugin-commonjs-require-case/case/pascal.test.js", "max_stars_repo_name": "charlesbjohnson/eslint-module-plugins", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/eslint-plugin-commonjs-require-case/case/pascal.test.js", "max_issues_repo_name": "charlesbjohnson/eslint-module-plugins", "max_issues_repo_issues_event_min_datetime": "2018-01-19T20:27:43.000Z", "max_issues_repo_issues_event_max_datetime": "2018-02-09T01:53:30.000Z", "max_forks_repo_path": "packages/eslint-plugin-commonjs-require-case/case/pascal.test.js", "max_forks_repo_name": "charlesbjohnson/eslint-module-plugins", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 15, "max_forks_count": null, "avg_line_length": 20.7666666667, "max_line_length": 62, "alphanum_fraction": 0.518459069}
const Pascal = require('./pascal');

describe('Pascal', () => {
	describe('.register', () => {
		test('key', () => {
			expect(Pascal.register()).toHaveProperty('pascal', Pascal);
		});
	});

	describe('#check', () => {
		test('correct ', () => {
			['Pascal', 'PascalCase'].forEach(s => {
				expect(Pascal.instance().check(s)).toBe(true);
			});
		});

		test('incorrect', () => {
			['pascal', 'pascalCase'].forEach(s => {
				expect(Pascal.instance().check(s)).toBe(false);
			});
		});
	});

	describe('#error', () => {
		test('message', () => {
			expect(Pascal.instance().error()).toMatch('pascal:');
		});
	});
});
