diff --git a/crates/typos-cli/tests/cmd/override-default-type.in/_typos.toml b/crates/typos-cli/tests/cmd/override-default-type.in/_typos.toml new file mode 100644 index 0000000..9128c76 --- /dev/null +++ b/crates/typos-cli/tests/cmd/override-default-type.in/_typos.toml @@ -0,0 +1,11 @@ +[type.asc] # GPG keys +extend-glob = ["*.asc"] +check-file = false + +[default.extend-words] +foo = "bar" + +[files] +extend-exclude = [ + "_typos.toml" +] diff --git a/crates/typos-cli/tests/cmd/override-default-type.in/key.asc b/crates/typos-cli/tests/cmd/override-default-type.in/key.asc new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/crates/typos-cli/tests/cmd/override-default-type.in/key.asc @@ -0,0 +1 @@ +foo diff --git a/crates/typos-cli/tests/cmd/override-default-type.toml b/crates/typos-cli/tests/cmd/override-default-type.toml new file mode 100644 index 0000000..90ff659 --- /dev/null +++ b/crates/typos-cli/tests/cmd/override-default-type.toml @@ -0,0 +1,11 @@ +bin.name = "typos" +args = "--file-types" +status.code = 0 +stdin = ''' +\n\n +Destory +''' +stdout = """ +./key.asc:asciidoc +""" +stderr = ""