mirror of
https://github.com/hanzoai/postcss.git
synced 2026-09-24 17:01:56 +00:00
21 lines
398 B
TypeScript
Executable File
21 lines
398 B
TypeScript
Executable File
import { eachTest } from 'postcss-parser-tests'
|
|
import { test } from 'uvu'
|
|
import { is } from 'uvu/assert'
|
|
|
|
import { stringify, parse } from '../lib/postcss.js'
|
|
|
|
eachTest((name, css) => {
|
|
if (name === 'bom.css') return
|
|
|
|
test(`stringifies ${name}`, () => {
|
|
let root = parse(css)
|
|
let result = ''
|
|
stringify(root, i => {
|
|
result += i
|
|
})
|
|
is(result, css)
|
|
})
|
|
})
|
|
|
|
test.run()
|