Skip to content

Commit f4041c4

Browse files
test: make test depend on ByType struct
1 parent 501eebb commit f4041c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/icon.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ mod test {
7777
use super::{IconTheme, Icons};
7878
use crate::flags::{IconOption, IconTheme as FlagTheme};
7979
use crate::meta::Meta;
80+
use crate::theme::icon::ByType;
8081
use std::fs::{create_dir_all, File};
8182
use tempfile::tempdir;
8283

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

250-
assert_eq!(
251-
icon_str,
252-
format!("{}{}", "\u{f115}" /*  */, icon.icon_separator)
253-
);
251+
let by_type = ByType::default();
252+
253+
assert_eq!(icon_str, format!("{}{}", by_type.dir, icon.icon_separator));
254254
}
255255
}
256256
}

0 commit comments

Comments
 (0)