File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/material/schematics/ng-generate/mdc-migration/rules Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { createTestApp , patchDevkitTreeToExposeTypeScript } from '@angular/cdk/schematics/testing' ;
2
2
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' ;
4
8
5
9
describe ( 'template migrations' , ( ) => {
6
10
let runner : SchematicTestRunner ;
7
11
let cliAppTree : UnitTestTree ;
8
12
9
13
async function runMigrationTest ( oldFileContent : string , newFileContent : string ) {
10
14
cliAppTree . overwrite ( TEMPLATE_FILE , oldFileContent ) ;
11
- const tree = await migrateComponent ( 'card' , runner , cliAppTree ) ;
15
+ const tree = await migrateComponents ( [ 'card' ] , runner , cliAppTree ) ;
12
16
expect ( tree . readContent ( TEMPLATE_FILE ) ) . toBe ( newFileContent ) ;
13
17
}
14
18
You can’t perform that action at this time.
0 commit comments