Switch to dep for dependency management

This commit is contained in:
Dan Sosedoff
2018-08-31 21:49:24 -05:00
parent 847f47c5d3
commit ad81f666a5
537 changed files with 167100 additions and 34410 deletions

View File

@@ -17,7 +17,8 @@ func Test_assetContentType(t *testing.T) {
"foo.gif": "image/gif",
"foo.eot": "application/vnd.ms-fontobject",
"foo.svg": "image/svg+xml",
"foo.ttf": "application/x-font-ttf",
"foo.ttf": "font/ttf",
"foo.woff": "font/woff",
"foo.foo": "text/plain; charset=utf-8",
"foo": "text/plain; charset=utf-8",
}
@@ -25,9 +26,4 @@ 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)
}
}