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

Function testFn

test/compress.js:13–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12function createCompressTest(name, test) {
13 const testFn = () => {
14 const compressed = minify(test.source, test.options);
15
16 strictEqual(normalize(compressed.css), normalize(test.compressed), 'compress by minify()');
17
18 const ast = parse(test.source);
19 const compressedAst = compress(ast, test.options).ast;
20 const css = generate(compressedAst);
21
22 strictEqual(normalize(css), normalize(test.compressed), 'compress step by step');
23 };
24
25 if (basename(name)[0] === '_') {
26 it.skip(name, testFn);

Callers

nothing calls this directly

Calls 4

minifyFunction · 0.85
compressFunction · 0.85
generateFunction · 0.85
normalizeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…