File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
projects/igniteui-angular/migrations/update-10_1_0 Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ describe('Update 10.1.0', () => {
28
28
appTree . create ( '/angular.json' , JSON . stringify ( configJson ) ) ;
29
29
} ) ;
30
30
31
- it ( 'should update DropPosition.None' , done => {
31
+ it ( 'should update DropPosition.None' , async ( ) => {
32
32
const origFileContent =
33
33
`import { Component, Injectable, ViewChild } from "@angular/core";` +
34
34
`import { IgxGridComponent, DropPosition } from "igniteui-angular";` +
@@ -63,9 +63,8 @@ describe('Update 10.1.0', () => {
63
63
'/testSrc/appPrefix/component/drop.component.ts' ,
64
64
origFileContent ) ;
65
65
66
- const tree = schematicRunner . runSchematic ( 'migration-16' , { } , appTree ) ;
66
+ const tree = await schematicRunner . runSchematicAsync ( 'migration-16' , { } , appTree ) . toPromise ( ) ;
67
67
expect ( tree . readContent ( '/testSrc/appPrefix/component/drop.component.ts' ) )
68
68
. toEqual ( expectedFileContent ) ;
69
- done ( ) ;
70
69
} ) ;
71
70
} ) ;
You can’t perform that action at this time.
0 commit comments