refactor: no error pages must return nil.

This commit is contained in:
Fernandez Ludovic 2017-12-21 17:10:22 +01:00 committed by Traefiker
parent 2cb4acd6cc
commit 987e8a93bd
2 changed files with 10 additions and 1 deletions

View file

@ -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 {