MCPcopy
hub / github.com/postcss/postcss / check

Function check

test/visitor.test.ts:628–634  ·  view source on GitHub ↗
(node: AnyNode, helpers: Helpers)

Source from the content-addressed store, hash-verified

626
627test('passes helpers', async () => {
628 function check(node: AnyNode, helpers: Helpers): void {
629 equal(helpers.result.messages, [])
630 is(typeof helpers.postcss, 'function')
631 is(helpers.comment().type, 'comment')
632 is(new helpers.Comment().type, 'comment')
633 equal(helpers.list, postcss.list)
634 }
635
636 let syncPlugin: Plugin = {
637 Once: check,

Callers 3

OnceFunction · 0.85
OnceExitFunction · 0.85
RuleFunction · 0.85

Calls 1

commentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…