From 791a056fdd600f5157e8b67b72a1e52bf4e1f27b Mon Sep 17 00:00:00 2001 From: Vasil Chimev Date: Mon, 18 Nov 2019 11:15:20 +0200 Subject: [PATCH] refactor: example --- e2e/appTestTs/app/tests/example.ts | 57 +++++++--------- e2e/appTestTs/app/tests/sample.ts | 101 +++++++++++++++++++++++++++++ e2e/appTestTs/karma.conf.js | 9 ++- 3 files changed, 133 insertions(+), 34 deletions(-) create mode 100644 e2e/appTestTs/app/tests/sample.ts diff --git a/e2e/appTestTs/app/tests/example.ts b/e2e/appTestTs/app/tests/example.ts index 28d6ca334..c305497f6 100644 --- a/e2e/appTestTs/app/tests/example.ts +++ b/e2e/appTestTs/app/tests/example.ts @@ -1,47 +1,40 @@ import { Builder, Label, Frame } from "@nativescript/core/ui"; -import { navigateToModule } from "@nativescript/core/testing/ui-helper"; +import { navigateToModule, asdf, render } from "@nativescript/core/testing/ui-helper"; import { assert } from "@nativescript/core/testing/tk-unit"; -// function assert(test: any, message?: string) { -// if (!test) { -// throw new Error(message); -// } -// } - const snippet = ` ` describe("---> describe", function () { - it("---> snippet", function () { - const rootView = Builder.parse(snippet); - const label =