mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
test: remove usages of deprecated runSchematicAsync function (#48745)
Removes our usages of `runSchematicAsync` since it is deprecated. PR Close #48745
This commit is contained in:
committed by
Andrew Kushnir
parent
5e5e7d79d0
commit
1e30baaaa7
@@ -56,7 +56,7 @@ describe('all migrations', () => {
|
||||
}
|
||||
|
||||
async function runMigration(migrationName: string) {
|
||||
await runner.runSchematicAsync(migrationName, undefined, tree).toPromise();
|
||||
await runner.runSchematic(migrationName, undefined, tree);
|
||||
}
|
||||
|
||||
if (!allMigrationSchematics.length) {
|
||||
|
||||
@@ -25,7 +25,7 @@ describe('Relative link resolution config migration', () => {
|
||||
}
|
||||
|
||||
function runMigration() {
|
||||
return runner.runSchematicAsync('migration-v15-relative-link-resolution', {}, tree).toPromise();
|
||||
return runner.runSchematic('migration-v15-relative-link-resolution', {}, tree);
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -25,7 +25,7 @@ describe('RouterLinkWithHref migration', () => {
|
||||
}
|
||||
|
||||
function runMigration() {
|
||||
return runner.runSchematicAsync('migration-v15-router-link-with-href', {}, tree).toPromise();
|
||||
return runner.runSchematic('migration-v15-router-link-with-href', {}, tree);
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user