(name, test)
| 7 | } |
| 8 | |
| 9 | function createCompressWithUsageTest(name, test) { |
| 10 | it(name, () => { |
| 11 | const compressed = minify(test.source, { |
| 12 | usage: test.usage |
| 13 | }); |
| 14 | |
| 15 | equal(normalize(compressed.css), normalize(test.compressed)); |
| 16 | }); |
| 17 | } |
| 18 | |
| 19 | describe('compress with usage', () => { |
| 20 | for (const name in tests) { |