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