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 css', t => {
    run(t, 'a { color: #FFC0CB; }',
           'a { color: transparent; text-shadow: 0 0 5px rgba(255, 192, 203, 1) }');
});

test('adds blur to image', t => {
    run(t, 'img {}',
           'img { filter: blur(5px); }');
});

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 css', t => {
    run(t, 'a { color: #FFC0CB; }',
           'a { color: transparent; text-shadow: 0 0 5px rgba(255, 192, 203, 1) }');
});

test('adds blur to image', t => {
    run(t, 'img {}',
           'img { filter: blur(5px); }');
});

test('adds blur to filter', t => {
    run(t, 'a { filter: contrast(1.5) }',
           'a { filter: blur(5px) contrast(1.5); }');
});

Test to see if filter gets blur
Test to see if filter gets blur
