mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-20 13:13:23 +00:00
test(form): update external field fixtures
This commit is contained in:
parent
ad0227c9dd
commit
8b53c84e0a
2 changed files with 7 additions and 2 deletions
|
|
@ -10,7 +10,12 @@ function ok<T>(data: T) {
|
|||
}
|
||||
|
||||
function form(id: string, sessionID: string): FormInfo {
|
||||
return { id, sessionID, title: "Input requested", fields: [] }
|
||||
return {
|
||||
id,
|
||||
sessionID,
|
||||
title: "Input requested",
|
||||
fields: [{ type: "external", url: "https://example.com/form" }],
|
||||
}
|
||||
}
|
||||
|
||||
function formCreated(info: FormInfo): V2Event {
|
||||
|
|
|
|||
|
|
@ -840,7 +840,7 @@ const scenarios: Scenario[] = [
|
|||
headers: ctx.headers(),
|
||||
body: {
|
||||
title: "External form",
|
||||
fields: [{ type: "link", url: "https://example.com/form" }],
|
||||
fields: [{ type: "external", url: "https://example.com/form" }],
|
||||
},
|
||||
}))
|
||||
.json(200, (body) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue