Skip to content

Commit

Permalink
Add a note about default theme value in test
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Jan 16, 2022
1 parent 26d5fa6 commit 4a438a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/color/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ mod tests {
fn test_empty_theme_return_default() {
// Must contain one field at least
// ref https://github.com/dtolnay/serde-yaml/issues/86
let empty_theme = Theme::with_yaml("user: 230".into()).unwrap();
let empty_theme = Theme::with_yaml("user: 230".into()).unwrap(); // 230 is the default value
let default_theme = Theme::default_dark();
assert_eq!(empty_theme, default_theme);
}
Expand Down

0 comments on commit 4a438a0

Please sign in to comment.