( actionChanges: ActionChanges, description: string, substitutions: Array<readonly [string, string]>, )
| 1424 | }; |
| 1425 | |
| 1426 | function 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. |
no test coverage detected
searching dependent graphs…