Skip to content

Commit 2687a72

Browse files
committed
fix(migrations): update version
1 parent 313fc0b commit 2687a72

File tree

5 files changed

+24
-64
lines changed

5 files changed

+24
-64
lines changed

projects/igniteui-angular/migrations/migration-collection.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,6 @@
226226
"version": "19.2.0",
227227
"description": "Updates Ignite UI for Angular from v19.1.0 to v19.2.0",
228228
"factory": "./update-19_2_0"
229-
},
230-
"migration-46": {
231-
"version": "19.2.4",
232-
"description": "Updates Ignite UI for Angular from v19.2.0 to v19.2.4",
233-
"factory": "./update-19_2_4"
234229
}
235230
}
236231
}

projects/igniteui-angular/migrations/update-19_2_4/changes/theme-changes.json renamed to projects/igniteui-angular/migrations/update-19_2_0/changes/theme-changes.json

File renamed without changes.

projects/igniteui-angular/migrations/update-19_2_0/index.spec.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,28 @@ describe(`Update to ${version}`, () => {
3434
`
3535
);
3636
});
37+
38+
it('should remove the properties related to invalid state from the switch theme', async () => {
39+
const testFilePath = `/testSrc/appPrefix/component/test.component.scss`;
40+
41+
appTree.create(
42+
testFilePath,
43+
`$invalid-switch-theme: switch-theme(
44+
$label-color: orange,
45+
$label-invalid-color: red,
46+
$track-error-color: red,
47+
$thumb-on-error-color: darkred,
48+
$error-color: red,
49+
$error-color-hover: darkred,
50+
);`
51+
);
52+
53+
const tree = await schematicRunner.runSchematic(migrationName, {}, appTree);
54+
55+
expect(tree.readContent(testFilePath)).toEqual(
56+
`$invalid-switch-theme: switch-theme(
57+
$label-color: orange,
58+
);`
59+
);
60+
});
3761
});

projects/igniteui-angular/migrations/update-19_2_4/index.spec.ts

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

projects/igniteui-angular/migrations/update-19_2_4/index.ts

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

0 commit comments

Comments
 (0)