MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / factory

Function factory

test/unit/spread.spec.ts:19–19  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

17
18describe.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();

Callers 2

spread.spec.tsFile · 0.85
getPluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected