Skip to content

Commit

Permalink
test: make test depend on ByType struct
Browse files Browse the repository at this point in the history
  • Loading branch information
atamakahere-git committed Dec 27, 2023
1 parent 501eebb commit f4041c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ mod test {
use super::{IconTheme, Icons};
use crate::flags::{IconOption, IconTheme as FlagTheme};
use crate::meta::Meta;
use crate::theme::icon::ByType;
use std::fs::{create_dir_all, File};
use tempfile::tempdir;

Expand Down Expand Up @@ -247,10 +248,9 @@ mod test {
let icon = Icons::new(false, IconOption::Always, FlagTheme::Fancy, " ".to_string());
let icon_str = icon.get(&meta.name);

assert_eq!(
icon_str,
format!("{}{}", "\u{f115}" /*  */, icon.icon_separator)
);
let by_type = ByType::default();

assert_eq!(icon_str, format!("{}{}", by_type.dir, icon.icon_separator));
}
}
}

0 comments on commit f4041c4

Please sign in to comment.