Skip to content

Commit 53b6b52

Browse files
amysortommalerba
authored andcommitted
fix(material/schematics): update test setup function name in template migration test
1 parent 425fd7d commit 53b6b52

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/material/schematics/ng-generate/mdc-migration/rules/template-migration.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import {createTestApp, patchDevkitTreeToExposeTypeScript} from '@angular/cdk/schematics/testing';
22
import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing';
3-
import {createNewTestRunner, migrateComponent, TEMPLATE_FILE} from './components/test-setup-helper';
3+
import {
4+
createNewTestRunner,
5+
migrateComponents,
6+
TEMPLATE_FILE,
7+
} from './components/test-setup-helper';
48

59
describe('template migrations', () => {
610
let runner: SchematicTestRunner;
711
let cliAppTree: UnitTestTree;
812

913
async function runMigrationTest(oldFileContent: string, newFileContent: string) {
1014
cliAppTree.overwrite(TEMPLATE_FILE, oldFileContent);
11-
const tree = await migrateComponent('card', runner, cliAppTree);
15+
const tree = await migrateComponents(['card'], runner, cliAppTree);
1216
expect(tree.readContent(TEMPLATE_FILE)).toBe(newFileContent);
1317
}
1418

0 commit comments

Comments
 (0)