Use lowercase directories (#1229)

This commit is contained in:
Joe Wilner 2020-07-10 23:09:01 -04:00 committed by GitHub
parent 6550984878
commit 60abe4ab6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,12 +299,12 @@ func TestPathPrefix(t *testing.T) {
Args []string Args []string
Pattern string Pattern string
}{ }{
{"empty", nil, "^testdata/withTests/"}, {"empty", nil, "^testdata/withtests/"},
{"prefixed", []string{"--path-prefix=cool"}, "^cool/testdata/withTests"}, {"prefixed", []string{"--path-prefix=cool"}, "^cool/testdata/withtests"},
} { } {
t.Run(tt.Name, func(t *testing.T) { t.Run(tt.Name, func(t *testing.T) {
testshared.NewLintRunner(t).Run( testshared.NewLintRunner(t).Run(
append(tt.Args, getTestDataDir("withTests"))..., //nolint:scopelint append(tt.Args, getTestDataDir("withtests"))..., //nolint:scopelint
).ExpectOutputRegexp( ).ExpectOutputRegexp(
tt.Pattern, //nolint:scopelint tt.Pattern, //nolint:scopelint
) )