mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Fix tsc errors
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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>) {
|
||||
|
Reference in New Issue
Block a user