Skip to content

Commit

Permalink
test: Improve CLI test
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
  • Loading branch information
Stranger6667 committed Sep 28, 2024
1 parent 95652ef commit efe45b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/jsonschema-cli/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ fn test_version() {
cmd.arg("--version");
let output = cmd.output().unwrap();
assert!(output.status.success());
assert_snapshot!(String::from_utf8_lossy(&output.stdout));
assert_eq!(
String::from_utf8_lossy(&output.stdout),
concat!("Version: ", env!("CARGO_PKG_VERSION"), "\n")
);
}

#[test]
Expand Down

0 comments on commit efe45b9

Please sign in to comment.