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:
Kristiyan Kostadinov
2023-01-16 10:53:29 +01:00
committed by Andrew Kushnir
parent 5e5e7d79d0
commit 1e30baaaa7
4 changed files with 11 additions and 12 deletions
@@ -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(() => {