diff --git a/tests/app/TKUnit.ts b/tests/app/TKUnit.ts index 909dda6ef..0f80de5d0 100644 --- a/tests/app/TKUnit.ts +++ b/tests/app/TKUnit.ts @@ -214,7 +214,7 @@ export function assertNotEqual(actual: any, expected: any, message?: string) { } } -export function assertEqual(actual: T, expected: T, message?: string) { +export function assertEqual(actual: T, expected: T, message: string = '') { if (!types.isNullOrUndefined(actual) && !types.isNullOrUndefined(expected) && types.getClass(actual) === types.getClass(expected) diff --git a/tests/app/ui/bindable-tests.ts b/tests/app/ui/bindable-tests.ts index 267f56182..d9a03ae9d 100644 --- a/tests/app/ui/bindable-tests.ts +++ b/tests/app/ui/bindable-tests.ts @@ -508,18 +508,17 @@ export function test_TwoElementsBindingToSameBindingContext() { export function test_BindingContext_NavigatingForwardAndBack() { const expectedValue = "Tralala"; + const moduleName = __dirname.substr(fs.knownFolders.currentApp().path.length); const testFunc = function (page: Page) { const innerTestFunc = function (childPage: Page) { const testTextField: TextField = (childPage.getViewById("testTextField")); testTextField.text = expectedValue; }; - const moduleName = __dirname.substr(fs.knownFolders.currentApp().path.length); helper.navigateToModuleAndRunTest(("." + moduleName + "/bindingContext_testPage2"), page.bindingContext, innerTestFunc); const testLabel: Label =