chore: generate
This commit is contained in:
parent
36119ff173
commit
f52ae28432
1 changed files with 1 additions and 4 deletions
|
|
@ -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" })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue