diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-08-31 20:53:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 13:53:42 +0200 |
commit | fa65e49bc689b2b84a3fa2dd123fa616f430f7fe (patch) | |
tree | 7b744a69c76d444cf59f7a0d078b48127c11bee1 /cli/tests/integration_tests.rs | |
parent | a451a97486e4cd9c311cef2c016137dcff672522 (diff) |
feat(lint): Add support for reading input from stdin (#7263)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index c0dcdb606..bf532e404 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -2253,6 +2253,20 @@ itest!(deno_lint_glob { exit_code: 1, }); +itest!(deno_lint_from_stdin { + args: "lint --unstable -", + input: Some("let a: any;"), + output: "lint/expected_from_stdin.out", + exit_code: 1, +}); + +itest!(deno_lint_from_stdin_json { + args: "lint --unstable --json -", + input: Some("let a: any;"), + output: "lint/expected_from_stdin_json.out", + exit_code: 1, +}); + itest!(deno_doc_builtin { args: "doc", output: "deno_doc_builtin.out", |