Commit 004a7f84 authored by Thomas Boerger's avatar Thomas Boerger Committed by Matt Holt

Make test case less dependent on exact error string (#741)

parent ed8a48e7
...@@ -52,7 +52,13 @@ func TestInclude(t *testing.T) { ...@@ -52,7 +52,13 @@ func TestInclude(t *testing.T) {
fileContent: `str1 {{ .InvalidField }} str2`, fileContent: `str1 {{ .InvalidField }} str2`,
expectedContent: "", expectedContent: "",
shouldErr: true, shouldErr: true,
expectedErrorContent: `InvalidField is not a field of struct type middleware.Context`, expectedErrorContent: `InvalidField`,
},
{
fileContent: `str1 {{ .InvalidField }} str2`,
expectedContent: "",
shouldErr: true,
expectedErrorContent: `type middleware.Context`,
}, },
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment