summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authortokiedokie <thetokiedokie@gmail.com>2020-09-19 02:03:37 +0900
committerGitHub <noreply@github.com>2020-09-18 13:03:37 -0400
commit4c2920ddd7729da2555728905c22aa2ece237758 (patch)
treeb8b1a9116823cc61608740cbb2cd176f16dc16eb /cli/tests
parentde95fbebc467a51577c692ff7808c09d3d26fac6 (diff)
fix(cli/fmt): canonicalize files in current dir (#7508)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration_tests.rs33
1 files changed, 33 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 4eda0e8dd..943e56799 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -3526,3 +3526,36 @@ fn rust_log() {
assert!(output.status.success());
assert!(!output.stderr.is_empty());
}
+
+#[test]
+fn lint_ignore_unexplicit_files() {
+ let output = util::deno_cmd()
+ .current_dir(util::root_path())
+ .arg("lint")
+ .arg("--unstable")
+ .arg("--ignore=./")
+ .stderr(std::process::Stdio::piped())
+ .spawn()
+ .unwrap()
+ .wait_with_output()
+ .unwrap();
+ assert!(output.status.success());
+ assert!(output.stderr.is_empty());
+}
+
+#[test]
+fn fmt_ignore_unexplicit_files() {
+ let output = util::deno_cmd()
+ .current_dir(util::root_path())
+ .arg("fmt")
+ .arg("--unstable")
+ .arg("--check")
+ .arg("--ignore=./")
+ .stderr(std::process::Stdio::piped())
+ .spawn()
+ .unwrap()
+ .wait_with_output()
+ .unwrap();
+ assert!(output.status.success());
+ assert!(output.stderr.is_empty());
+}