MCPcopy Create free account
hub / github.com/angular/angular / actionChangesMatch

Function actionChangesMatch

packages/language-service/test/code_fixes_spec.ts:1500–1509  ·  view source on GitHub ↗
(
  actionChanges: ActionChanges,
  description: string,
  substitutions: Array<readonly [string, string]>,
)

Source from the content-addressed store, hash-verified

1498};
1499
1500function actionChangesMatch(
1501 actionChanges: ActionChanges,
1502 description: string,
1503 substitutions: Array<readonly [string, string]>,
1504) {
1505 expect(Object.keys(actionChanges)).toContain(description);
1506 for (const substitution of substitutions) {
1507 expect(actionChanges[description]).toContain([substitution[0], substitution[1]]);
1508 }
1509}
1510
1511// Returns the ActionChanges for all changes in the given code actions, collapsing whitespace into a
1512// single space and trimming at the ends.

Callers 1

code_fixes_spec.tsFile · 0.85

Calls 1

keysMethod · 0.65

Tested by

no test coverage detected