diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-07 03:31:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-07 09:31:19 +0100 |
commit | 99186dbaa25c5715103f6a0e0df9fae9488470b3 (patch) | |
tree | 4f03c46baa7d57da835b98bbf3ef6435cb485ea9 /cli/tests/integration_tests.rs | |
parent | 98fc7db47d2ae1d817ac595d7f21138678515474 (diff) |
Remove conditionals from installer (#3909)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 15 |
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""); } |