diff --git a/.travis.yml b/.travis.yml index 7795fb4..54bcb98 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/pkg/api/api_test.go b/pkg/api/api_test.go index 4afd5d4..b22f757 100644 --- a/pkg/api/api_test.go +++ b/pkg/api/api_test.go @@ -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) + } }