File tree 2 files changed +24
-0
lines changed
projects/igniteui-angular/migrations/update-6_2 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " ../../common/schema/binding.schema.json" ,
3
+ "changes" : [
4
+ {
5
+ "name" : " onEditDone" ,
6
+ "replaceWith" : " onCellEdit" ,
7
+ "owner" : {
8
+ "selector" : " igx-grid" ,
9
+ "type" : " component"
10
+ }
11
+ }
12
+ ]
13
+ }
Original file line number Diff line number Diff line change @@ -67,4 +67,15 @@ describe('Update 6.2.0', () => {
67
67
<igx-icon fontSet="svg-icons" name="my-icon"></igx-icon>` ) ;
68
68
done ( ) ;
69
69
} ) ;
70
+
71
+ it ( 'should rename igx-grid onEditDone event' , done => {
72
+ appTree . create (
73
+ '/testSrc/appPrefix/component/test.component.html' ,
74
+ `<igx-grid (onEditDone)="handler"></igx-grid> <not-igx-grid (onEditDone)="handler"></not-igx-grid>`
75
+ ) ;
76
+ const tree = schematicRunner . runSchematic ( 'migration-05' , { } , appTree ) ;
77
+ expect ( tree . readContent ( '/testSrc/appPrefix/component/test.component.html' ) )
78
+ . toEqual ( `<igx-grid (onCellEdit)="handler"></igx-grid> <not-igx-grid (onEditDone)="handler"></not-igx-grid>` ) ;
79
+ done ( ) ;
80
+ } ) ;
70
81
} ) ;
You can’t perform that action at this time.
0 commit comments