Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 44c24c4

Browse files
committed
Fixed tests from different casing
1 parent 27c6df2 commit 44c24c4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

manifest.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ var (
3131
errInvalidPrune = errors.Errorf("%q must be a TOML table of booleans", "prune")
3232
errInvalidPruneProject = errors.Errorf("%q must be a TOML array of tables", "prune.project")
3333
errInvalidMetadata = errors.New("metadata should be a TOML table")
34-
errInvalidProjectRoot = errors.New("ProjectRoot name validation failed")
34+
35+
errInvalidProjectRoot = errors.New("ProjectRoot name validation failed")
3536

3637
errInvalidPruneValue = errors.New("prune options values must be booleans")
3738
errPruneSubProject = errors.New("prune projects should not contain sub projects")

manifest_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ func TestValidateManifest(t *testing.T) {
344344
nick = "foo"
345345
`,
346346
wantWarn: []error{
347-
errors.New("Invalid key \"location\" in \"constraint\""),
348-
errors.New("Invalid key \"link\" in \"constraint\""),
347+
errors.New("invalid key \"location\" in \"constraint\""),
348+
errors.New("invalid key \"link\" in \"constraint\""),
349349
errors.New("metadata in \"constraint\" should be a TOML table"),
350350
errors.New("branch, version, revision, or source should be provided for \"github.com/foo/bar\""),
351-
errors.New("Invalid key \"nick\" in \"override\""),
351+
errors.New("invalid key \"nick\" in \"override\""),
352352
errNoName,
353353
},
354354
wantError: nil,

0 commit comments

Comments
 (0)