diff --git a/tests/app/text/formatted-string-tests.ts b/tests/app/text/formatted-string-tests.ts index 0558fa3e8..a1d3f4e06 100644 --- a/tests/app/text/formatted-string-tests.ts +++ b/tests/app/text/formatted-string-tests.ts @@ -36,7 +36,7 @@ export var test_FormattedTextProperty_IsChanged_When_SpanIsAdded = function () { firstSpan.text = "LoremIpsum"; formattedString.spans.push(firstSpan); - TKUnit.assert(formattedTextChanged === true, "FormattedText property is not changed."); + TKUnit.assertTrue(formattedTextChanged, "FormattedText property is not changed."); } export var test_FormattedTextProperty_IsChanged_When_SpanIsChanged = function () { @@ -57,7 +57,7 @@ export var test_FormattedTextProperty_IsChanged_When_SpanIsChanged = function () firstSpan.fontSize = expectedValue; firstSpan.endEdit(); - TKUnit.assert(formattedTextChanged === true, "FormattedText property is not changed."); + TKUnit.assertTrue(formattedTextChanged, "FormattedText property is not changed."); TKUnit.assert(formattedString.spans.getItem(0).fontSize === expectedValue, "FormattedString internal span is not changed as expected"); } diff --git a/tests/app/ui/button/button-tests.ts b/tests/app/ui/button/button-tests.ts index 78abc6800..43050eb2d 100644 --- a/tests/app/ui/button/button-tests.ts +++ b/tests/app/ui/button/button-tests.ts @@ -109,7 +109,7 @@ var _testOnClick = function (views: Array) { // << button-tap buttonTestsNative.performNativeClick(button); - TKUnit.assert(actualValue === true, "Actual: " + actualValue + "; Expected: " + true); + TKUnit.assertTrue(actualValue, "Actual: " + actualValue + "; Expected: " + true); } var _testBindTextDirectlyToModel = function (views: Array) {