tui: go plan payg msg (#26248)
This commit is contained in:
@@ -230,8 +230,19 @@ describe("SessionStatus.Info", () => {
|
||||
expect(SessionStatus.Info.zod.parse({ type: "idle" })).toEqual({ type: "idle" })
|
||||
})
|
||||
|
||||
test("retry carries attempt/message/next", () => {
|
||||
const input = { type: "retry" as const, attempt: 1, message: "transient", next: 500 }
|
||||
test("retry carries attempt/message/action/next", () => {
|
||||
const input = {
|
||||
type: "retry" as const,
|
||||
attempt: 1,
|
||||
message: "transient",
|
||||
action: {
|
||||
title: "Free limit reached",
|
||||
message: "Subscribe to OpenCode Go.",
|
||||
label: "subscribe",
|
||||
link: "https://opencode.ai/go",
|
||||
},
|
||||
next: 500,
|
||||
}
|
||||
expect(decode(input)).toEqual(input)
|
||||
expect(SessionStatus.Info.zod.parse(input)).toEqual(input)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user