summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index a0486fbf6..c7b2a4b4e 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -138,7 +138,7 @@ fn installer_test_local_module_run() {
let stderr_str = std::str::from_utf8(&output.stderr).unwrap().trim();
println!("Got stdout: {:?}", stdout_str);
println!("Got stderr: {:?}", stderr_str);
- assert_eq!(stdout_str, "hello, foo");
+ assert!(stdout_str.ends_with("hello, foo"));
drop(temp_dir);
}
@@ -180,10 +180,10 @@ fn installer_test_remote_module_run() {
.env(path_var_name, path_var_value)
.output()
.expect("failed to spawn script");
- assert_eq!(
- std::str::from_utf8(&output.stdout).unwrap().trim(),
- "hello, foo"
- );
+ assert!(std::str::from_utf8(&output.stdout)
+ .unwrap()
+ .trim()
+ .ends_with("hello, foo"));
drop(temp_dir);
drop(g)
}
@@ -243,7 +243,10 @@ fn bundle_exports() {
.output()
.expect("failed to spawn script");
// check the output of the test.ts program.
- assert_eq!(std::str::from_utf8(&output.stdout).unwrap().trim(), "Hello");
+ assert!(std::str::from_utf8(&output.stdout)
+ .unwrap()
+ .trim()
+ .ends_with("Hello"));
assert_eq!(output.stderr, b"");
}