import stringify from '../lib/stringify';
import parse     from '../lib/parse';

import { expect } from 'chai';
import   cases    from 'postcss-parser-tests';

describe('stringify', () => {

    cases.each( (name, css) => {
        it('stringifies ' + name, () => {
            let root = parse(css);
            let result = '';
            stringify(root, i => result += i );
            expect(result).to.eql(css);
        });
    });

});

@@ -280,24 +280,18 @@
 et r
-oot = parse(css)
+esult = ''
 ;%0A  
@@ -301,34 +301,42 @@
        let r
-esult = ''
+oot   = parse(css)
 ;%0A          

Clean code style in stringify test