From fa65e49bc689b2b84a3fa2dd123fa616f430f7fe Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Mon, 31 Aug 2020 20:53:42 +0900 Subject: feat(lint): Add support for reading input from stdin (#7263) --- cli/tests/integration_tests.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cli/tests/integration_tests.rs') 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", -- cgit v1.2.3