From cfa18211007b4d7f148d4f6c9bc32ba579a9de76 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 21 Aug 2023 10:16:16 -0500 Subject: [PATCH] test(cli): Show no file error --- crates/typos-cli/tests/cmd/missing-arg.in/.keep | 0 crates/typos-cli/tests/cmd/missing-arg.toml | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 crates/typos-cli/tests/cmd/missing-arg.in/.keep create mode 100644 crates/typos-cli/tests/cmd/missing-arg.toml diff --git a/crates/typos-cli/tests/cmd/missing-arg.in/.keep b/crates/typos-cli/tests/cmd/missing-arg.in/.keep new file mode 100644 index 0000000..e69de29 diff --git a/crates/typos-cli/tests/cmd/missing-arg.toml b/crates/typos-cli/tests/cmd/missing-arg.toml new file mode 100644 index 0000000..cee0bc6 --- /dev/null +++ b/crates/typos-cli/tests/cmd/missing-arg.toml @@ -0,0 +1,8 @@ +bin.name = "typos" +args = "foo" +status.code = 64 +stdin = "" +# stdout doesn't have stable order +stderr = """ +No such file or directory (os error 2) +"""