MCPcopy Index your code
hub / github.com/angular/angular-cli / ruleYes

Function ruleYes

packages/angular_devkit/schematics/src/rules/base_spec.ts:196–201  ·  view source on GitHub ↗
(tree: Tree)

Source from the content-addressed store, hash-verified

194 const predicate = (path: Path) => path.indexOf('1') != -1;
195
196 const ruleYes: Rule = (tree: Tree) => {
197 expect(tree.exists('/test1')).toBe(true);
198 expect(tree.exists('/test2')).toBe(false);
199
200 return empty();
201 };
202 const ruleNo: Rule = (tree: Tree) => {
203 expect(tree.exists('/test1')).toBe(false);
204 expect(tree.exists('/test2')).toBe(true);

Callers

nothing calls this directly

Calls 2

emptyFunction · 0.90
existsMethod · 0.65

Tested by

no test coverage detected