Skip to content

Commit 1641696

Browse files
committed
chore: Type casts
1 parent 33af944 commit 1641696

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/automated/src/ui/styling/css-keywords-tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export var test_value_Inherited_after_initial = function () {
3030

3131
btn.color = new Color('#0000FF');
3232
TKUnit.assertEqual(btn.color.hex, '#0000FF', 'color property');
33-
btn.color = 'initial';
33+
(btn as any).color = 'initial';
3434
TKUnit.assertEqual(btn.color, undefined, 'color property');
3535
};
3636

@@ -62,7 +62,7 @@ export var test_value_Inherited_after_unset = function () {
6262

6363
btn.color = new Color('#0000FF');
6464
TKUnit.assertEqual(btn.color.hex, '#0000FF', 'color property');
65-
btn.color = 'unset';
65+
(btn as any).color = 'unset';
6666
TKUnit.assertEqual(btn.color.hex, '#FF0000', 'color property');
6767
};
6868

@@ -94,7 +94,7 @@ export var test_value_Inherited_after_revert = function () {
9494

9595
btn.color = new Color('#0000FF');
9696
TKUnit.assertEqual(btn.color.hex, '#0000FF', 'color property');
97-
btn.color = 'revert';
97+
(btn as any).color = 'revert';
9898
TKUnit.assertEqual(btn.color.hex, '#FF0000', 'color property');
9999
};
100100

@@ -127,6 +127,6 @@ export var test_value_Inherited_after_inherit = function () {
127127

128128
btn.color = new Color('#0000FF');
129129
TKUnit.assertEqual(btn.color.hex, '#0000FF', 'color property');
130-
btn.color = 'inherit';
130+
(btn as any).color = 'inherit';
131131
TKUnit.assertEqual(btn.color.hex, '#FF0000', 'color property');
132132
};

0 commit comments

Comments
 (0)