import postcss from 'postcss';
import test    from 'ava';

import plugin from './';

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

test('adds blur to html', t => {
    return run(t, 'html {}', 'html { color: transparent; text-shadow: 0 0 5px rgba(0,0,0,1); } ');
});

@@ -353,16 +353,21 @@
  'html %7B
+%5Cn   
  color: 
@@ -378,16 +378,21 @@
 sparent;
+%5Cn   
  text-sh
@@ -422,10 +422,8 @@
 0,1)
-; 
 %7D ')

Improve test