{"size": 937, "ext": "js", "max_stars_repo_path": "node_modules/jdf/node_modules/htmllint/test/functional/id-class-value.js", "max_stars_repo_name": "SlienXu/hello-world", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node_modules/jdf/node_modules/htmllint/test/functional/id-class-value.js", "max_issues_repo_name": "SlienXu/hello-world", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node_modules/jdf/node_modules/htmllint/test/functional/id-class-value.js", "max_forks_repo_name": "SlienXu/hello-world", "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": 32.3103448276, "max_line_length": 62, "alphanum_fraction": 0.5112059765}
module.exports = [
    {
        desc: 'should pass when set to false',
        input: '<div id="2fOwj_0o-3" class="0r9jfFJ2"></div>',
        opts: { 'id-class-value': false },
        output: 0
    }, {
        desc: 'should pass correctly styled id and class',
        input: '<div id="abc" class="fowj0wo3"></div>',
        opts: { 'id-class-value': 'lowercase' },
        output: 0
    }, {
        desc: 'should fail incorrectly styled id names',
        input: '<div id="foWj0wo3"></div>',
        opts: { 'id-class-value': 'lowercase' },
        output: 1
    }, {
        desc: 'should fail incorrectly styled class names',
        input: '<div class="fojf*ovo"></div>',
        opts: { 'id-class-value': 'lowercase' },
        output: 1
    }, {
        desc: 'should accept a "dash" option',
        input: '<div id="abc" class="fowj-awo3-fqowj"></div>',
        opts: { 'id-class-value': 'dash' },
        output: 0
    }
];
