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

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

it('should trasform \'display: nope;\' to \'display: none;\'', () => {
    return run('a{display: nope;}', 'a{display: none;}', {});
});

it('should not trasform \'content: "nope";\'', () => {
    return run('a:after{content: "nope";}', 'a:after{content: "nope";}', {});
});

@@ -550,20 +550,200 @@
 %22nope%22;%7D', %7B%7D);%0A%7D);%0A
+%0Ait('should trasform %5C'nope%5C' to %5C'none%5C' leaving %5C'important!%5C'', () =%3E %7B%0A    return run( 'a%7Bdisplay: nope !important;%7D',%0A                'a%7Bdisplay: none !important;%7D', %7B%7D);%0A%7D);%0A

Add test with important