Skip to content

Commit

Permalink
test: reset test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Oct 3, 2024
1 parent e52f116 commit 538863c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/cache/clear.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,19 @@ impl CacheClear {

#[cfg(test)]
mod tests {
use crate::test::reset;

#[test]
fn test_cache_clear() {
reset();
assert_cli_snapshot!("cache", "clear", @r###"
mise cache cleared
"###);
}

#[test]
fn test_cache_clear_plugin() {
reset();
assert_cli_snapshot!("cache", "clear", "tiny", @r###"
mise cache cleared for tiny
"###);
Expand Down
2 changes: 2 additions & 0 deletions src/cli/render_mangen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ fn project_root() -> PathBuf {
mod tests {
use crate::env::HOME;
use crate::file;
use crate::test::reset;

#[test]
fn test_render_mangen() {
reset();
let out_dir = HOME.parent().unwrap().join("man").join("man1");
let orig = file::read_to_string(out_dir.join("mise.1")).unwrap();
assert_cli!("render-mangen");
Expand Down

0 comments on commit 538863c

Please sign in to comment.