Skip to content

Commit

Permalink
add config test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantsepp authored and salemhilal committed Aug 29, 2022
1 parent 973c999 commit d2f8655
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func TestExampleConfigsAreValid(t *testing.T) {
t.Error("global detectRef vcs config setting not set for repo")
}

if len(cfg.Repos["AnotherGitRepo"].AutoGeneratedFiles) != 1 {
t.Fatal("expected to see one value for AutoGeneratedFiles")
}

repo = cfg.Repos["GitRepoWithDetectRefDisabled"]
vcsConfigBytes = repo.VcsConfig()
json.Unmarshal(vcsConfigBytes, &vcsConfigVals) //nolint
Expand Down

0 comments on commit d2f8655

Please sign in to comment.