diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-07-12 12:47:14 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-07-13 10:56:23 +0200 |
commit | 9df98ec49ca9fa326125ccfee626b6e46c6ab14b (patch) | |
tree | cdfcfcc9522366d69b7b543638b689852a5e1252 /media/mediaType_test.go | |
parent | 2fc33807077cd25bf91f2298bf1a8ace126881a7 (diff) |
Add proper Media Type handling in js.Build
See #732
Diffstat (limited to 'media/mediaType_test.go')
-rw-r--r-- | media/mediaType_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/media/mediaType_test.go b/media/mediaType_test.go index f18fd90bb..ee7d4407a 100644 --- a/media/mediaType_test.go +++ b/media/mediaType_test.go @@ -40,6 +40,9 @@ func TestDefaultTypes(t *testing.T) { {CSVType, "text", "csv", "csv", "text/csv", "text/csv"}, {HTMLType, "text", "html", "html", "text/html", "text/html"}, {JavascriptType, "application", "javascript", "js", "application/javascript", "application/javascript"}, + {TypeScriptType, "application", "typescript", "ts", "application/typescript", "application/typescript"}, + {TSXType, "text", "tsx", "tsx", "text/tsx", "text/tsx"}, + {JSXType, "text", "jsx", "jsx", "text/jsx", "text/jsx"}, {JSONType, "application", "json", "json", "application/json", "application/json"}, {RSSType, "application", "rss", "xml", "application/rss+xml", "application/rss+xml"}, {SVGType, "image", "svg", "svg", "image/svg+xml", "image/svg+xml"}, @@ -58,7 +61,7 @@ func TestDefaultTypes(t *testing.T) { } - c.Assert(len(DefaultTypes), qt.Equals, 23) + c.Assert(len(DefaultTypes), qt.Equals, 26) } |