refactor(schema): tighten public contracts (#33771)
This commit is contained in:
@@ -256,7 +256,7 @@ describe("Todo.Info", () => {
|
||||
const decode = decodeUnknown(Todo.Info)
|
||||
|
||||
test("three-field round-trip", () => {
|
||||
const input = { content: "do a thing", status: "pending", priority: "high" }
|
||||
const input = Todo.Info.make({ content: "do a thing", status: "pending", priority: "high" })
|
||||
expect(decode(input)).toEqual(input)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user