Skip to content

Commit b77903f

Browse files
authored
Merge pull request #3280 from NativeScript/fix-tsc
Fix tsc errors
2 parents 39007ab + d1edf6b commit b77903f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/app/text/formatted-string-tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export var test_FormattedTextProperty_IsChanged_When_SpanIsAdded = function () {
3636
firstSpan.text = "LoremIpsum";
3737
formattedString.spans.push(firstSpan);
3838

39-
TKUnit.assert(formattedTextChanged === true, "FormattedText property is not changed.");
39+
TKUnit.assertTrue(formattedTextChanged, "FormattedText property is not changed.");
4040
}
4141

4242
export var test_FormattedTextProperty_IsChanged_When_SpanIsChanged = function () {
@@ -57,7 +57,7 @@ export var test_FormattedTextProperty_IsChanged_When_SpanIsChanged = function ()
5757
firstSpan.fontSize = expectedValue;
5858
firstSpan.endEdit();
5959

60-
TKUnit.assert(formattedTextChanged === true, "FormattedText property is not changed.");
60+
TKUnit.assertTrue(formattedTextChanged, "FormattedText property is not changed.");
6161
TKUnit.assert(formattedString.spans.getItem(0).fontSize === expectedValue, "FormattedString internal span is not changed as expected");
6262
}
6363

tests/app/ui/button/button-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ var _testOnClick = function (views: Array<viewModule.View>) {
109109
// << button-tap
110110

111111
buttonTestsNative.performNativeClick(button);
112-
TKUnit.assert(actualValue === true, "Actual: " + actualValue + "; Expected: " + true);
112+
TKUnit.assertTrue(actualValue, "Actual: " + actualValue + "; Expected: " + true);
113113
}
114114

115115
var _testBindTextDirectlyToModel = function (views: Array<viewModule.View>) {

0 commit comments

Comments
 (0)