chore: generate
This commit is contained in:
@@ -737,10 +737,7 @@ describe("util.effect-zod", () => {
|
|||||||
const fallback = platform === "darwin" ? "cmd-k" : "ctrl-k"
|
const fallback = platform === "darwin" ? "cmd-k" : "ctrl-k"
|
||||||
const schema = zod(
|
const schema = zod(
|
||||||
Schema.Struct({
|
Schema.Struct({
|
||||||
command_palette: Schema.String.pipe(
|
command_palette: Schema.String.pipe(Schema.optional, Schema.withDecodingDefault(Effect.sync(() => fallback))),
|
||||||
Schema.optional,
|
|
||||||
Schema.withDecodingDefault(Effect.sync(() => fallback)),
|
|
||||||
),
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
expect(schema.parse({})).toEqual({ command_palette: "cmd-k" })
|
expect(schema.parse({})).toEqual({ command_palette: "cmd-k" })
|
||||||
|
|||||||
Reference in New Issue
Block a user