mirror of
https://github.com/starship/starship.git
synced 2024-11-30 20:24:25 +01:00
19 lines
434 B
Rust
19 lines
434 B
Rust
use ansi_term::Color;
|
|
use std::io;
|
|
|
|
use crate::common;
|
|
|
|
#[test]
|
|
fn env_set() -> io::Result<()> {
|
|
let output = common::render_module("singularity")
|
|
.env_clear()
|
|
.env("SINGULARITY_NAME", "centos.img")
|
|
.output()?;
|
|
|
|
let expected = format!("{} ", Color::Blue.bold().dimmed().paint("[centos.img]"));
|
|
let actual = String::from_utf8(output.stdout).unwrap();
|
|
|
|
assert_eq!(expected, actual);
|
|
Ok(())
|
|
}
|