refactor: no error pages must return nil.
This commit is contained in:
parent
2cb4acd6cc
commit
987e8a93bd
2 changed files with 10 additions and 1 deletions
|
@ -1070,6 +1070,11 @@ func TestParseErrorPages(t *testing.T) {
|
|||
},
|
||||
expected: map[string]*types.ErrorPage{"foo": {}},
|
||||
},
|
||||
{
|
||||
desc: "no error pages labels",
|
||||
labels: map[string]string{},
|
||||
expected: nil,
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range testCases {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue