diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-09-09 23:45:31 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 16:45:31 +0200 |
commit | 857f9b32e02c876e9cce6e82f82fb6ed95248646 (patch) | |
tree | 85bcb5f2215228c932690fd229e3a52d01335b85 /cli/tests/fmt | |
parent | 1fcbf9cb8a2aa330ddc95c1481976b9e06ca994c (diff) |
feat(fmt, lint): show number of checked files (#7312)
Diffstat (limited to 'cli/tests/fmt')
-rw-r--r-- | cli/tests/fmt/expected_fmt_check_formatted_files.out | 1 | ||||
-rw-r--r-- | cli/tests/fmt/expected_fmt_check_ignore.out | 1 | ||||
-rw-r--r-- | cli/tests/fmt/expected_fmt_check_tests_dir.out | 2 | ||||
-rw-r--r-- | cli/tests/fmt/expected_fmt_check_verbose_formatted_files.out | 1 | ||||
-rw-r--r-- | cli/tests/fmt/expected_fmt_check_verbose_tests_dir.out | 2 | ||||
-rw-r--r-- | cli/tests/fmt/formatted1.js | 5 | ||||
-rw-r--r-- | cli/tests/fmt/formatted2.ts | 5 |
7 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/fmt/expected_fmt_check_formatted_files.out b/cli/tests/fmt/expected_fmt_check_formatted_files.out new file mode 100644 index 000000000..158c556c2 --- /dev/null +++ b/cli/tests/fmt/expected_fmt_check_formatted_files.out @@ -0,0 +1 @@ +Checked 2 files diff --git a/cli/tests/fmt/expected_fmt_check_ignore.out b/cli/tests/fmt/expected_fmt_check_ignore.out new file mode 100644 index 000000000..c05ac45a1 --- /dev/null +++ b/cli/tests/fmt/expected_fmt_check_ignore.out @@ -0,0 +1 @@ +Checked 1 file diff --git a/cli/tests/fmt/expected_fmt_check_tests_dir.out b/cli/tests/fmt/expected_fmt_check_tests_dir.out new file mode 100644 index 000000000..04cd5ec64 --- /dev/null +++ b/cli/tests/fmt/expected_fmt_check_tests_dir.out @@ -0,0 +1,2 @@ +[WILDCARD] +error: Found 1 not formatted file in [WILDCARD] files diff --git a/cli/tests/fmt/expected_fmt_check_verbose_formatted_files.out b/cli/tests/fmt/expected_fmt_check_verbose_formatted_files.out new file mode 100644 index 000000000..158c556c2 --- /dev/null +++ b/cli/tests/fmt/expected_fmt_check_verbose_formatted_files.out @@ -0,0 +1 @@ +Checked 2 files diff --git a/cli/tests/fmt/expected_fmt_check_verbose_tests_dir.out b/cli/tests/fmt/expected_fmt_check_verbose_tests_dir.out new file mode 100644 index 000000000..04cd5ec64 --- /dev/null +++ b/cli/tests/fmt/expected_fmt_check_verbose_tests_dir.out @@ -0,0 +1,2 @@ +[WILDCARD] +error: Found 1 not formatted file in [WILDCARD] files diff --git a/cli/tests/fmt/formatted1.js b/cli/tests/fmt/formatted1.js new file mode 100644 index 000000000..587aa5b96 --- /dev/null +++ b/cli/tests/fmt/formatted1.js @@ -0,0 +1,5 @@ +function foo() { + return 42; +} + +foo(); diff --git a/cli/tests/fmt/formatted2.ts b/cli/tests/fmt/formatted2.ts new file mode 100644 index 000000000..4a8036806 --- /dev/null +++ b/cli/tests/fmt/formatted2.ts @@ -0,0 +1,5 @@ +function bar(): number { + return 42; +} + +bar(); |