( asserted: Function )
| 293 | return result.threw |
| 294 | } |
| 295 | export const callAssertedFunction = ( |
| 296 | asserted: Function |
| 297 | ): AssertedFnCallResult => { |
| 298 | const result: AssertedFnCallResult = {} |
| 299 | try { |
| 300 | result.returned = asserted() |
| 301 | } catch (error) { |
| 302 | result.threw = String(error) |
| 303 | } |
| 304 | return result |
| 305 | } |
no test coverage detected