mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
test: introduce env variable mocking (#1490)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use crate::utils::exec_cmd;
|
||||
|
||||
use clap::crate_version;
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
|
||||
@@ -254,5 +255,6 @@ mod tests {
|
||||
|
||||
let config_path = get_config_path("bash");
|
||||
assert_eq!("/test/home/.bashrc", config_path.unwrap().to_str().unwrap());
|
||||
env::remove_var("HOME");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user