瀏覽代碼

chore: generate

opencode-agent[bot] 14 小時之前
父節點
當前提交
daaa1c7e26
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      packages/opencode/test/util/effect-zod.test.ts

+ 4 - 5
packages/opencode/test/util/effect-zod.test.ts

@@ -848,12 +848,11 @@ describe("util.effect-zod", () => {
     test("identifier + description propagate through the preprocess wrapper", () => {
       const Inner = Schema.Struct({
         x: Schema.optional(Schema.String),
+      }).annotate({
+        identifier: "WithPreproc",
+        description: "A schema with preprocess",
+        [ZodPreprocess]: (v: unknown) => v,
       })
-        .annotate({
-          identifier: "WithPreproc",
-          description: "A schema with preprocess",
-          [ZodPreprocess]: (v: unknown) => v,
-        })
       const schema = zod(Inner)
       expect(schema.meta()?.ref).toBe("WithPreproc")
       expect(schema.meta()?.description).toBe("A schema with preprocess")