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.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index bb99cf49b..b5e5d1fa6 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -33,16 +33,17 @@ fn js_unit_tests_lint() {
#[test]
fn js_unit_tests() {
let _g = util::http_server();
+
let mut deno = util::deno_cmd()
.current_dir(util::root_path())
- .arg("run")
+ .arg("test")
.arg("--unstable")
+ .arg("--location=http://js-unit-tests/foo/bar")
.arg("-A")
- .arg("cli/tests/unit/unit_test_runner.ts")
- .arg("--master")
- .arg("--verbose")
+ .arg("cli/tests/unit")
.spawn()
.expect("failed to spawn script");
+
let status = deno.wait().expect("failed to wait for the child process");
assert_eq!(Some(0), status.code());
assert!(status.success());