(code: string)
| 17 | |
| 18 | describe.each(["function call", "array literal"] as const)("in %s", kind => { |
| 19 | const factory = (code: string) => (kind === "function call" ? `((...args: any[]) => args)(${code})` : `[${code}]`); |
| 20 | |
| 21 | test.each(arrayLiteralCases)("of array literal (%p)", expression => { |
| 22 | util.testExpression(factory(expression)).expectToMatchJsResult(); |
no outgoing calls
no test coverage detected