mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-01 02:04:24 +00:00
Name the new question option fields in the interview tests
Petri's QuestionOption gained optional description and preview fields at 639ce3e; the four test initializers now set them to None. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
f0cb4ef54f
commit
ac81543482
1 changed files with 16 additions and 8 deletions
|
|
@ -708,12 +708,16 @@ mod tests {
|
|||
let mut question = Question::new("gate#3", "Go?");
|
||||
question.options = vec![
|
||||
QuestionOption {
|
||||
key: "Y".into(),
|
||||
label: "[Y] Yes".into(),
|
||||
key: "Y".into(),
|
||||
label: "[Y] Yes".into(),
|
||||
description: None,
|
||||
preview: None,
|
||||
},
|
||||
QuestionOption {
|
||||
key: "N".into(),
|
||||
label: "[N] No".into(),
|
||||
key: "N".into(),
|
||||
label: "[N] No".into(),
|
||||
description: None,
|
||||
preview: None,
|
||||
},
|
||||
];
|
||||
question.kind = Some("yes_no".into());
|
||||
|
|
@ -734,12 +738,16 @@ mod tests {
|
|||
let mut approve = Question::new("q", "Ship?");
|
||||
approve.options = vec![
|
||||
QuestionOption {
|
||||
key: "A".into(),
|
||||
label: "Approve".into(),
|
||||
key: "A".into(),
|
||||
label: "Approve".into(),
|
||||
description: None,
|
||||
preview: None,
|
||||
},
|
||||
QuestionOption {
|
||||
key: "R".into(),
|
||||
label: "Reject".into(),
|
||||
key: "R".into(),
|
||||
label: "Reject".into(),
|
||||
description: None,
|
||||
preview: None,
|
||||
},
|
||||
];
|
||||
assert_eq!(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue