diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index 8a3a7cdd1..acc4e75cb 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -1,7 +1,8 @@ use crate::context::{Context, Shell}; use crate::logger::StarshipLogger; use crate::{ - config::StarshipConfig, + config::{RootModuleConfig, StarshipConfig}, + configs::StarshipRootConfig, utils::{create_command, CommandOutput}, }; use log::{Level, LevelFilter}; @@ -78,6 +79,7 @@ impl<'a> ModuleRenderer<'a> { /// Sets the config of the underlying context pub fn config(mut self, config: toml::Value) -> Self { + self.context.root_config = StarshipRootConfig::load(&config); self.context.config = StarshipConfig { config: Some(config), }; |