Fix test for mime x-font-woff, pin down golang versions in travis

This commit is contained in:
Dan Sosedoff
2017-06-05 21:08:56 -05:00
parent 03d3c35a86
commit 943963f760
2 changed files with 8 additions and 4 deletions

View File

@@ -18,7 +18,6 @@ func Test_assetContentType(t *testing.T) {
"foo.eot": "application/vnd.ms-fontobject",
"foo.svg": "image/svg+xml",
"foo.ttf": "application/x-font-ttf",
"foo.woff": "application/x-font-woff",
"foo.foo": "text/plain; charset=utf-8",
"foo": "text/plain; charset=utf-8",
}
@@ -26,4 +25,9 @@ func Test_assetContentType(t *testing.T) {
for name, expected := range samples {
assert.Equal(t, expected, assetContentType(name))
}
result := assetContentType("foo.woff")
if result != "application/x-font-woff" && result != "application/font-woff" {
t.Errorf("Expected: application/x-font-woff, Got: %s", result)
}
}