Skip to content

Commit

Permalink
test: missing color for item
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux committed Nov 12, 2024
1 parent 35482c3 commit 73579e5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,15 @@ tools:
"#
);
}

#[test]
#[should_panic(expected = "missing color or icon for item VSCode")]
fn should_handle_missing_property() {
let input = r##"
tools:
ides:
- label: VSCode
"##;
generate_toolbox(&input.to_string());
}
}

0 comments on commit 73579e5

Please sign in to comment.