Fix test for mime x-font-woff, pin down golang versions in travis
This commit is contained in:
parent
03d3c35a86
commit
943963f760
@ -10,9 +10,9 @@ addons:
|
||||
|
||||
go:
|
||||
- 1.5.4
|
||||
- 1.6.3
|
||||
- 1.7
|
||||
- 1.8
|
||||
- 1.6.4
|
||||
- 1.7.6
|
||||
- 1.8.3
|
||||
|
||||
env:
|
||||
- GO15VENDOREXPERIMENT=1
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user