MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / back

Function back

apps/automated/src/navigation/navigation-tests.ts:98–98  ·  view source on GitHub ↗
(pages)

Source from the content-addressed store, hash-verified

96 };
97
98 const back = (pages) => Frame.topmost().goBack(Frame.topmost().backStack[Frame.topmost().backStack.length - pages]);
99 const currentPageMustBe = (tag) => TKUnit.assertEqual(Frame.topmost().currentPage['tag'], tag, 'Expected current page to be ' + tag + ' it was ' + Frame.topmost().currentPage['tag'] + ' instead.');
100
101 let parentPage1, parentPage2, innerPage1, innerPage2;

Callers 2

_test_backToEntryFunction · 0.85

Calls 2

goBackMethod · 0.45
topmostMethod · 0.45

Tested by

no test coverage detected