mirror of
https://github.com/numtide/treefmt.git
synced 2024-10-05 21:17:37 +03:00
chore(test): remove unneeded argument
The -C is not relevant for this unit test.
This commit is contained in:
parent
611cad7637
commit
f89b4102da
@ -571,17 +571,17 @@ func TestPathsArg(t *testing.T) {
|
||||
test.WriteConfig(t, configPath, cfg)
|
||||
|
||||
// without any path args
|
||||
_, err = cmd(t, "-C", tempDir)
|
||||
_, err = cmd(t)
|
||||
as.NoError(err)
|
||||
assertStats(t, as, 32, 32, 32, 0)
|
||||
|
||||
// specify some explicit paths
|
||||
_, err = cmd(t, "-C", tempDir, "-c", "elm/elm.json", "haskell/Nested/Foo.hs")
|
||||
_, err = cmd(t, "-c", "elm/elm.json", "haskell/Nested/Foo.hs")
|
||||
as.NoError(err)
|
||||
assertStats(t, as, 2, 2, 2, 0)
|
||||
|
||||
// specify a bad path
|
||||
_, err = cmd(t, "-C", tempDir, "-c", "elm/elm.json", "haskell/Nested/Bar.hs")
|
||||
_, err = cmd(t, "-c", "elm/elm.json", "haskell/Nested/Bar.hs")
|
||||
as.ErrorContains(err, "no such file or directory")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user