<commit_before>const { expect } = require('chai');

const postcss = require('postcss');

const plugin = require('./');

function run(input, output) {
    return postcss([plugin()])
        .process(input)
        .then(result => {
            expect(result.css).to.deep.equal(output);
            expect(result.warnings().length).to.deep.equal(0);
        });
}

const inAtRule = '@media screen and (min-width: 480px) {\nbody {\nbackground-color: lightgreen;\n}\n}\n';
const outAtRule = '@media screen and (min-width: 480px) {\r\nbody {\r\nbackground-color: lightgreen;\r\n}\r\n}\r\n';

const inIds = '#main {\nborder: 1px solid black;\n}\n';
const outIds = '#main {\r\nborder: 1px solid black;\r\n}\r\n';

const inClass = 'ul li {\npadding: 5px;\n}\n';
const outClass = 'ul li {\r\npadding: 5px;\r\n}\r\n';

describe('Check EOL', () => {
    it('Check atRule EOL', () => {
        return run(inAtRule, outIds);
    });

    it('Check ids EOL', () => {
        return run(inIds, outIds);
    });

    it('Check class EOL', () => {
        return run(inClass, outClass);
    });
});<commit_msg>test check<commit_after>const { expect } = require('chai');

const postcss = require('postcss');

const plugin = require('./');

function run(input, output) {
    return postcss([plugin()])
        .process(input)
        .then(result => {
            expect(result.css).to.deep.equal(output);
            expect(result.warnings().length).to.deep.equal(0);
        });
}

const inAtRule = `@media screen and (min-width: 480px) {
    body {
        background-color: lightgreen;
    }
}
`;
const outAtRule =
    '@media screen and (min-width: 480px) {\r\n    body {\r\n        background-color: lightgreen;\r\n    }\r\n}\r\n';

const inIds = '#main {\nborder: 1px solid black;\n}\n';
const outIds = '#main {\r\nborder: 1px solid black;\r\n}\r\n';

const inClass = 'ul li {\npadding: 5px;\n}\n';
const outClass = 'ul li {\r\npadding: 5px;\r\n}\r\n';

describe('Check EOL', () => {
    it('Check atRule EOL', () => {
        return run(inAtRule, outAtRule);
    });

    it('Check ids EOL', () => {
        return run(inIds, outIds);
    });

    it('Check class EOL', () => {
        return run(inClass, outClass);
    });
});
{'fraction_non_alphanumeric': 0.2025259359494813, 'fraction_numerical': 0.009923319801533603, 'mean_word_length': 2.7849829351535837, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5123240', 'n_tokens_mistral': 797, 'n_tokens_neox': 771, 'n_words': 172}