MCPcopy
hub / github.com/css/csso / createCompressWithUsageTest

Function createCompressWithUsageTest

test/usage.js:9–17  ·  view source on GitHub ↗
(name, test)

Source from the content-addressed store, hash-verified

7}
8
9function 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
19describe('compress with usage', () => {
20 for (const name in tests) {

Callers 1

usage.jsFile · 0.85

Calls 2

minifyFunction · 0.85
normalizeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…