{"draft":null,"from":175,"to":318,"files":[{"path":"worker/project/test/definition-code.test.ts","added":12,"removed":7,"diff":"--- a/worker/project/test/definition-code.test.ts\n+++ b/worker/project/test/definition-code.test.ts\n@@ -39,18 +39,23 @@\n \tconst rows = () => storage.db.prepare(\"SELECT * FROM state ORDER BY collection,key\").all();\n \tconst before = rows();\n \tlet escaped: readonly string[] = [];\n-\twithDefinitionCode(view, view.buildLines(\"f.ts\"), (code) => {\n-\t\tescaped = code;\n-\t\tassert.deepEqual(code.slice(0, 4), expected.slice(0, 4));\n-\t\tfor (let i = code.length - 1; i >= 0; i--) assert.equal(code[i], expected[i]);\n-\t\tfor (let i = 0; i < code.length; i++) assert.equal(code[i], expected[i]);\n-\t});\n+\twithDefinitionCode(\n+\t\tview,\n+\t\tview.buildLines(\"f.ts\"),\n+\t\t(code) => {\n+\t\t\tescaped = code;\n+\t\t\tassert.deepEqual(code.slice(0, 4), expected.slice(0, 4));\n+\t\t\tfor (let i = code.length - 1; i >= 0; i--) assert.equal(code[i], expected[i]);\n+\t\t\tfor (let i = 0; i < code.length; i++) assert.equal(code[i], expected[i]);\n+\t\t},\n+\t\t65536,\n+\t);\n \tassert.throws(() => escaped[0], /scope has ended/);\n \tassert.deepEqual(rows(), before);\n \tassert.deepEqual(definitionsIn(view), definitionsIn(new View(memory, [\"a0\"])));\n \tassert.deepEqual(definedTwice(view, \"f.ts\"), definedTwice(new View(memory, [\"a0\"]), \"f.ts\"));\n \tassert.deepEqual(rows(), before);\n \tstorage.failWrite = storage.writes + 2;\n-\tassert.throws(() => withDefinitionCode(view, view.buildLines(\"f.ts\"), () => []), /injected storage failure/);\n+\tassert.throws(() => withDefinitionCode(view, view.buildLines(\"f.ts\"), () => [], 65536), /injected storage failure/);\n \tassert.deepEqual(rows(), before);\n });"}],"unmatched":[]}