From efe45b942fb85fa8e849746c50ae1bf483475992 Mon Sep 17 00:00:00 2001 From: Dmitry Dygalo Date: Sun, 29 Sep 2024 00:18:50 +0200 Subject: [PATCH] test: Improve CLI test Signed-off-by: Dmitry Dygalo --- crates/jsonschema-cli/tests/cli.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/jsonschema-cli/tests/cli.rs b/crates/jsonschema-cli/tests/cli.rs index 7fb3da60..cc6f8458 100644 --- a/crates/jsonschema-cli/tests/cli.rs +++ b/crates/jsonschema-cli/tests/cli.rs @@ -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]