mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 18:41:05 -05:00
test(config): Reproduce types bug
This commit is contained in:
parent
1a4e9428d6
commit
77f0389a9e
3 changed files with 23 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
[type.asc] # GPG keys
|
||||
extend-glob = ["*.asc"]
|
||||
check-file = false
|
||||
|
||||
[default.extend-words]
|
||||
foo = "bar"
|
||||
|
||||
[files]
|
||||
extend-exclude = [
|
||||
"_typos.toml"
|
||||
]
|
|
@ -0,0 +1 @@
|
|||
foo
|
11
crates/typos-cli/tests/cmd/override-default-type.toml
Normal file
11
crates/typos-cli/tests/cmd/override-default-type.toml
Normal file
|
@ -0,0 +1,11 @@
|
|||
bin.name = "typos"
|
||||
args = "--file-types"
|
||||
status.code = 0
|
||||
stdin = '''
|
||||
\n\n
|
||||
Destory
|
||||
'''
|
||||
stdout = """
|
||||
./key.asc:asciidoc
|
||||
"""
|
||||
stderr = ""
|
Loading…
Reference in a new issue