File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/angular/cli/src/commands/update/schematic Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 9
9
import { normalize , virtualFs } from '@angular-devkit/core' ;
10
10
import { HostTree } from '@angular-devkit/schematics' ;
11
11
import { SchematicTestRunner , UnitTestTree } from '@angular-devkit/schematics/testing' ;
12
+ import { lastValueFrom } from 'rxjs' ;
12
13
import { map } from 'rxjs/operators' ;
13
14
import * as semver from 'semver' ;
14
15
import { angularMajorCompatGuarantee } from './index' ;
@@ -94,15 +95,15 @@ describe('@schematics/update', () => {
94
95
) ,
95
96
) ;
96
97
97
- const newTree = await schematicRunner
98
- . runSchematicAsync (
98
+ const newTree = await lastValueFrom (
99
+ schematicRunner . runSchematicAsync (
99
100
'update' ,
100
101
{
101
102
packages : [ '@angular-devkit-tests/update-base' ] ,
102
103
} ,
103
104
tree ,
104
- )
105
- . toPromise ( ) ;
105
+ ) ,
106
+ ) ;
106
107
const { dependencies } = JSON . parse ( newTree . readContent ( '/package.json' ) ) ;
107
108
expect ( dependencies [ '@angular-devkit-tests/update-base' ] ) . toBe ( '1.1.0' ) ;
108
109
} ) ;
You can’t perform that action at this time.
0 commit comments