Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/app/text/formatted-string-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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");
}

Expand Down
2 changes: 1 addition & 1 deletion tests/app/ui/button/button-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ var _testOnClick = function (views: Array<viewModule.View>) {
// << 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<viewModule.View>) {
Expand Down