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.rs29
1 files changed, 27 insertions, 2 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 943e56799..389afdea3 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -1787,6 +1787,12 @@ itest!(fmt_check_tests_dir {
exit_code: 1,
});
+itest!(fmt_quiet_check_fmt_dir {
+ args: "fmt --check --quiet fmt/",
+ output_str: Some(""),
+ exit_code: 0,
+});
+
itest!(fmt_check_formatted_files {
args: "fmt --check fmt/formatted1.js fmt/formatted2.ts",
output: "fmt/expected_fmt_check_formatted_files.out",
@@ -2354,6 +2360,12 @@ itest!(deno_lint {
exit_code: 1,
});
+itest!(deno_lint_quiet {
+ args: "lint --unstable --quiet lint/file1.js",
+ output: "lint/expected_quiet.out",
+ exit_code: 1,
+});
+
itest!(deno_lint_json {
args:
"lint --unstable --json lint/file1.js lint/file2.ts lint/ignored_file.ts lint/malformed.js",
@@ -2387,6 +2399,19 @@ itest!(deno_lint_from_stdin_json {
exit_code: 1,
});
+itest!(deno_lint_rules {
+ args: "lint --unstable --rules",
+ output: "lint/expected_rules.out",
+ exit_code: 0,
+});
+
+// Make sure that the rules are printed if quiet option is enabled.
+itest!(deno_lint_rules_quiet {
+ args: "lint --unstable --rules -q",
+ output: "lint/expected_rules.out",
+ exit_code: 0,
+});
+
itest!(deno_doc_builtin {
args: "doc",
output: "deno_doc_builtin.out",
@@ -3540,7 +3565,7 @@ fn lint_ignore_unexplicit_files() {
.wait_with_output()
.unwrap();
assert!(output.status.success());
- assert!(output.stderr.is_empty());
+ assert_eq!(output.stderr, b"Checked 0 file\n");
}
#[test]
@@ -3557,5 +3582,5 @@ fn fmt_ignore_unexplicit_files() {
.wait_with_output()
.unwrap();
assert!(output.status.success());
- assert!(output.stderr.is_empty());
+ assert_eq!(output.stderr, b"Checked 0 file\n");
}