MCPcopy
hub / github.com/angular/angular / captureRules

Function captureRules

packages/compiler/test/shadow_css/process_rules_spec.ts:13–20  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

11describe('ShadowCss, processRules', () => {
12 describe('parse rules', () => {
13 function captureRules(input: string): CssRule[] {
14 const result: CssRule[] = [];
15 processRules(input, (cssRule) => {
16 result.push(cssRule);
17 return cssRule;
18 });
19 return result;
20 }
21
22 it('should work with empty css', () => {
23 expect(captureRules('')).toEqual([]);

Callers 1

Calls 2

processRulesFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…