mirror of
https://github.com/hanzoai/postcss.git
synced 2026-09-24 17:01:56 +00:00
18 lines
405 B
JavaScript
18 lines
405 B
JavaScript
import stringify from '../lib/stringify';
|
|
import parse from '../lib/parse';
|
|
|
|
import cases from 'postcss-parser-tests';
|
|
|
|
cases.each( (name, css) => {
|
|
if ( name === 'bom.css' ) return;
|
|
|
|
it('stringifies ' + name, () => {
|
|
let root = parse(css);
|
|
let result = '';
|
|
stringify(root, i => {
|
|
result += i;
|
|
});
|
|
expect(result).toEqual(css);
|
|
});
|
|
});
|