Skip to content

Commit

Permalink
test: added reset() to more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 30, 2024
1 parent 29c7f18 commit f9f65b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/forge/asdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -883,10 +883,15 @@ fn parse_template(config: &Config, tv: &ToolVersion, tmpl: &str) -> eyre::Result

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

use crate::test::reset;

use super::*;

#[test]
fn test_debug() {
reset();
let plugin = Asdf::new(String::from("dummy"));
assert!(format!("{:?}", plugin).starts_with("ExternalPlugin { name: \"dummy\""));
}
Expand Down

0 comments on commit f9f65b3

Please sign in to comment.