(input: unknown, path: string, message?: string)
| 11 | const empty = (type: Graph.Kind) => ({ type, nodes: [], edges: [] }) |
| 12 | |
| 13 | const assertDecodeFailure = (input: unknown, path: string, message?: string) => { |
| 14 | throws(() => decodeDirected(input), (error) => { |
| 15 | const formatted = globalThis.String(error) |
| 16 | assert.include(formatted, path) |
| 17 | if (message !== undefined) assert.include(formatted, message) |
| 18 | }) |
| 19 | } |
| 20 | |
| 21 | describe("Schema.Graph", () => { |
| 22 | it.effect("derives productive arbitrary graphs", () => |