(input: string, options: SignatureFeatures)
| 8 | const css = String.raw |
| 9 | |
| 10 | function expand(input: string, options: SignatureFeatures): string { |
| 11 | let ast = parse(input) |
| 12 | |
| 13 | walk(ast, (node) => { |
| 14 | if (node.kind === 'declaration') { |
| 15 | let result = expandDeclaration(node, options) |
| 16 | if (result) return WalkAction.ReplaceSkip(result) |
| 17 | } |
| 18 | }) |
| 19 | |
| 20 | return toCss(ast) |
| 21 | } |
| 22 | |
| 23 | describe('expand declarations', () => { |
| 24 | let options = SignatureFeatures.ExpandProperties |
no test coverage detected