(ui: () => U, setup: (ui: U) => void, test: (ui: U) => void)
| 81 | // TODO: Order tests! |
| 82 | |
| 83 | function 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 | |
| 94 | let getViews = (template: string) => { |
| 95 | let root = Builder.parse(template); |
no test coverage detected