diff --git a/apps/tests/ui/view/view-tests-common.ts b/apps/tests/ui/view/view-tests-common.ts index 56421f56d..756442bd5 100644 --- a/apps/tests/ui/view/view-tests-common.ts +++ b/apps/tests/ui/view/view-tests-common.ts @@ -622,8 +622,8 @@ export var testSetStyle = function () { lbl.setStyle(`color: ${expectedColor};background-color: ${expectedBackgroundColor};`); helper.buildUIAndRunTest(lbl, function (views: Array) { - TKUnit.assert(lbl.color.hex === expectedColor, "Actual: " + lbl.color.hex + "; Expected: " + expectedColor); - TKUnit.assert(lbl.backgroundColor.hex === expectedBackgroundColor, "Actual: " + lbl.backgroundColor.hex + "; Expected: " + expectedBackgroundColor); + TKUnit.assertEqual(lbl.color.hex, expectedColor); + TKUnit.assertEqual(lbl.backgroundColor.hex, expectedBackgroundColor); }); }