summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authortokiedokie <thetokiedokie@gmail.com>2020-09-15 13:26:57 +0900
committerGitHub <noreply@github.com>2020-09-15 06:26:57 +0200
commit04d347225776ef81282740a55b55a45419644b7f (patch)
treef8076b2f84c96112cb6599d475e7df4c5d470346 /cli/tests/integration_tests.rs
parentf457ff9157c845db08accd5905a2c1cbd7762b39 (diff)
refactor(cli/tests): change std_path to root_path in std_tests() (#7438)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 62b1751b0..41e5c5d96 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -13,11 +13,10 @@ use tempfile::TempDir;
#[test]
fn std_tests() {
let dir = TempDir::new().expect("tempdir fail");
- let std_path = util::root_path().join("std");
- let std_config = std_path.join("tsconfig_test.json");
+ let std_config = util::root_path().join("std/tsconfig_test.json");
let status = util::deno_cmd()
.env("DENO_DIR", dir.path())
- .current_dir(std_path) // TODO(ry) change this to root_path
+ .current_dir(util::root_path())
.arg("test")
.arg("--unstable")
.arg("--seed=86") // Some tests rely on specific random numbers.
@@ -25,6 +24,7 @@ fn std_tests() {
.arg("--config")
.arg(std_config.to_str().unwrap())
// .arg("-Ldebug")
+ .arg("std/")
.spawn()
.unwrap()
.wait()