summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-06-17 21:50:30 +0200
committerGitHub <noreply@github.com>2020-06-17 21:50:30 +0200
commit097e42418c6746a4f24e05effaf6a61df9509310 (patch)
tree5b8861736f8b550737770b426dcc0524d3dfe54f /cli/tests
parente60922981be918ba4e6d9d857d9834b0d586df5b (diff)
chore: move fmt test to integration tests (#6340)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/fmt_check_tests_dir.out2
-rw-r--r--cli/tests/integration_tests.rs6
2 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/fmt_check_tests_dir.out b/cli/tests/fmt_check_tests_dir.out
new file mode 100644
index 000000000..9ae4117f0
--- /dev/null
+++ b/cli/tests/fmt_check_tests_dir.out
@@ -0,0 +1,2 @@
+[WILDCARD]
+error: Found [WILDCARD] not formatted files
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 36e2bc90b..db2773150 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -1539,6 +1539,12 @@ itest!(bundle {
output: "bundle.test.out",
});
+itest!(fmt_check_tests_dir {
+ args: "fmt --check ./",
+ output: "fmt_check_tests_dir.out",
+ exit_code: 1,
+});
+
itest!(fmt_stdin {
args: "fmt -",
input: Some("const a = 1\n"),