MCPcopy Index your code
hub / github.com/thesysdev/openui / assert

Function assert

packages/react-ui/check-css-artifacts.js:16–18  ·  view source on GitHub ↗
(cond, msg)

Source from the content-addressed store, hash-verified

14
15const read = (rel) => fs.readFileSync(path.join(dist, rel), "utf8");
16const assert = (cond, msg) => {
17 if (!cond) failures.push(msg);
18};
19
20assert(
21 !/^\s*@layer/.test(read("components/index.css")),

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected