MCPcopy Index your code
hub / github.com/angular/angular / actionChangesMatch

Function actionChangesMatch

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

Source from the content-addressed store, hash-verified

1424};
1425
1426function actionChangesMatch(
1427 actionChanges: ActionChanges,
1428 description: string,
1429 substitutions: Array<readonly [string, string]>,
1430) {
1431 expect(Object.keys(actionChanges)).toContain(description);
1432 for (const substitution of substitutions) {
1433 expect(actionChanges[description]).toContain([substitution[0], substitution[1]]);
1434 }
1435}
1436
1437// Returns the ActionChanges for all changes in the given code actions, collapsing whitespace into a
1438// 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…