( html: string, blockFn: () => Promise<unknown> | void, )
| 36 | * @param blockFn function to wrap. The function can return promise or be `async`. |
| 37 | */ |
| 38 | export function withBody( |
| 39 | html: string, |
| 40 | blockFn: () => Promise<unknown> | void, |
| 41 | ): jasmine.ImplementationCallback { |
| 42 | return wrapTestFn(() => document.body, html, blockFn); |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Wraps a function in a new function which sets up document and HTML for running a test. |
no test coverage detected
searching dependent graphs…