From 99186dbaa25c5715103f6a0e0df9fae9488470b3 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 7 Feb 2020 03:31:19 -0500 Subject: Remove conditionals from installer (#3909) --- cli/tests/integration_tests.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'cli/tests') 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""); } -- cgit v1.2.3