Skip to content

Commit 4b03d39

Browse files
author
MPopov
committed
fix(Grid toolbar): fix migrations
Signed-off-by: MPopov <[email protected]>
1 parent adf9963 commit 4b03d39

File tree

4 files changed

+37
-83
lines changed

4 files changed

+37
-83
lines changed

projects/igniteui-angular/migrations/update-8_2_6/index.spec.ts

Lines changed: 0 additions & 66 deletions
This file was deleted.

projects/igniteui-angular/migrations/update-8_2_6/index.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

projects/igniteui-angular/migrations/update-8_2_6/changes/theme-props.json renamed to projects/igniteui-angular/migrations/update-9_0_0/changes/theme-props.json

File renamed without changes.

projects/igniteui-angular/migrations/update-9_0_0/index.spec.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,41 @@ describe('Update 9.0.0', () => {
4343
`);
4444
done();
4545
});
46+
47+
it('should update igx-carousel-theme prop', done => {
48+
appTree.create(
49+
'/testSrc/appPrefix/component/test.component.scss',
50+
`$my-toolbar-theme: igx-grid-toolbar-theme(
51+
$background-color: null,
52+
$button-background: null,
53+
$title-text-color: null,
54+
$button-text-color: null,
55+
$button-hover-background: null,
56+
$button-hover-text-color: null,
57+
$button-focus-background: null,
58+
$button-focus-text-color: null,
59+
$dropdown-background: null,
60+
$item-text-color: null,
61+
$item-hover-background: null,
62+
$item-hover-text-color: null,
63+
$item-focus-background: null,
64+
$item-focus-text-color: null
65+
);`
66+
);
67+
const tree = schematicRunner.runSchematic('migration-12', {}, appTree);
68+
expect(tree.readContent('/testSrc/appPrefix/component/test.component.scss'))
69+
.toEqual(
70+
`$my-toolbar-theme: igx-grid-toolbar-theme(
71+
$background-color: null,
72+
$title-text-color: null,
73+
$dropdown-background: null,
74+
$item-text-color: null,
75+
$item-hover-background: null,
76+
$item-hover-text-color: null,
77+
$item-focus-background: null,
78+
$item-focus-text-color: null
79+
);`
80+
);
81+
done();
82+
});
4683
});

0 commit comments

Comments
 (0)