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

Function test

apps/automated/src/ui/layouts/flexbox-layout-tests.ts:83–92  ·  view source on GitHub ↗
(ui: () => U, setup: (ui: U) => void, test: (ui: U) => void)

Source from the content-addressed store, hash-verified

81// TODO: Order tests!
82
83function test<U extends { root: View }>(ui: () => U, setup: (ui: U) => void, test: (ui: U) => void): () => void {
84 return () => {
85 let i = ui();
86 setup(i);
87 helper.buildUIAndRunTest(i.root, () => {
88 waitUntilTestElementLayoutIsValid(i.root);
89 test(i);
90 });
91 };
92}
93
94let getViews = (template: string) => {
95 let root = Builder.parse(template);

Callers 3

executeSnippetMethod · 0.70
executeSnippetMethod · 0.50

Calls 2

setupFunction · 0.50

Tested by

no test coverage detected