(metadata: Record<string, string[]> = {})
| 4 | import { createContext, createProxyContext, shouldFnBind } from "./create_context"; |
| 5 | |
| 6 | const createScriptInfo = (metadata: Record<string, string[]> = {}): TScriptInfo => |
| 7 | ({ |
| 8 | id: 1, |
| 9 | uuid: "script-uuid", |
| 10 | name: "create-context-test", |
| 11 | metadata: { |
| 12 | grant: ["none"], |
| 13 | version: ["1.0.0"], |
| 14 | ...metadata, |
| 15 | }, |
| 16 | code: "", |
| 17 | sourceCode: "", |
| 18 | value: { |
| 19 | foo: "bar", |
| 20 | nested: { a: 1 }, |
| 21 | }, |
| 22 | resource: {}, |
| 23 | }) as unknown as TScriptInfo; |
| 24 | |
| 25 | const createTestContext = (grants: string[], metadata: Record<string, string[]> = {}) => |
| 26 | createContext( |
no outgoing calls
no test coverage detected