Skip to content

Commit

Permalink
tests(theming): correct fallback to (none) if theme unloadable
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Dec 29, 2024
1 parent 3fc175a commit a0176a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/atuin-client/src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ mod theme_tests {

testing_logger::validate(|captured_logs| assert_eq!(captured_logs.len(), 0));

// If the parent is not found, we end up with the base theme colors
// If the parent is not found, we end up with the no theme colors or styling
// as this is considered a (soft) error state.
let nunsolarized = Config::builder()
.add_source(ConfigFile::from_str(
"
Expand All @@ -716,7 +717,7 @@ mod theme_tests {
nunsolarized_theme
.as_style(Meaning::Guidance)
.foreground_color,
Some(Color::DarkBlue)
None
);

testing_logger::validate(|captured_logs| {
Expand Down

0 comments on commit a0176a5

Please sign in to comment.