MCPcopy Create free account
hub / github.com/GTJasonMK/lessAI / assertRule

Function assertRule

scripts/ui-regression.test.mjs:23–28  ·  view source on GitHub ↗
(css, selector, property, value)

Source from the content-addressed store, hash-verified

21}
22
23function assertRule(css, selector, property, value) {
24 assert.ok(
25 hasRule(css, selector, property, value),
26 `期望 CSS 存在:${selector} { ${property}: ${value}; }`
27 );
28}
29
30function assertNoRule(css, selector, property, value) {
31 assert.ok(

Callers 1

Calls 1

hasRuleFunction · 0.85

Tested by

no test coverage detected