<commit_before>var postcss = require('postcss');
var expect  = require('chai').expect;

var plugin = require('../');

var test = function (input, output, opts, done) {
    postcss([ plugin(opts) ]).process(input).then(function (result) {
        expect(result.css).to.eql(output);
        expect(result.warnings()).to.be.empty;
        done();
    }).catch(function (error) {
        done(error);
    });
};

describe('postcss-german-stylesheets', function () {

    /* Write tests here

    it('does something', function (done) {
        test('a{ }', 'a{ }', { }, done);
    });*/

});<commit_msg>added testing<commit_after>var postcss = require('postcss');
var expect  = require('chai').expect;

var plugin = require('../');

var test = function (input, output, opts, done) {
    postcss([ plugin(opts) ]).process(input).then(function (result) {
        expect(result.css).to.eql(output);
        expect(result.warnings()).to.be.empty;
        done();
    }).catch(function (error) {
        done(error);
    });
};

describe('postcss-german-stylesheets', function () {

    // Properties
    it('converts farbe to color', function (done) {
        test('a{ farbe: white; }', 'a{ color: white; }', {}, done);
    });

    // Values
    it('converts grau to gray', function (done) {
        test('a{ color: grau; }', 'a{ color: gray; }', {}, done);
    });

});
{'fraction_non_alphanumeric': 0.2055800293685756, 'fraction_numerical': 0.0, 'mean_word_length': 3.0445103857566767, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6559104', 'n_tokens_mistral': 446, 'n_tokens_neox': 436, 'n_words': 95}