mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
test(cli): Verify disallowed functionality
This commit is contained in:
parent
6d31a7ef84
commit
3f41a6791c
3 changed files with 20 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
[default.extend-identifiers]
|
||||
hello = ""
|
1
crates/typos-cli/tests/cmd/config-disallowed.in/file
Normal file
1
crates/typos-cli/tests/cmd/config-disallowed.in/file
Normal file
|
@ -0,0 +1 @@
|
|||
hello `hello`
|
17
crates/typos-cli/tests/cmd/config-disallowed.toml
Normal file
17
crates/typos-cli/tests/cmd/config-disallowed.toml
Normal file
|
@ -0,0 +1,17 @@
|
|||
bin.name = "typos"
|
||||
stdin = ""
|
||||
stdout = """
|
||||
error: `hello` is disallowed
|
||||
--> ./file:1:1
|
||||
|
|
||||
1 | hello `hello`
|
||||
| ^^^^^
|
||||
|
|
||||
error: `hello` is disallowed
|
||||
--> ./file:1:8
|
||||
|
|
||||
1 | hello `hello`
|
||||
| ^^^^^
|
||||
|
|
||||
"""
|
||||
stderr = ""
|
Loading…
Reference in a new issue