summaryrefslogtreecommitdiff
path: root/media_types/test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'media_types/test.ts')
-rw-r--r--media_types/test.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/media_types/test.ts b/media_types/test.ts
index d028448f9..9d630ad10 100644
--- a/media_types/test.ts
+++ b/media_types/test.ts
@@ -11,14 +11,14 @@ import {
types
} from "./mod.ts";
-test(function testLookup() {
+test(function testLookup(): void {
assertEquals(lookup("json"), "application/json");
assertEquals(lookup(".md"), "text/markdown");
assertEquals(lookup("folder/file.js"), "application/javascript");
assertEquals(lookup("folder/.htaccess"), undefined);
});
-test(function testContentType() {
+test(function testContentType(): void {
assertEquals(contentType("markdown"), "text/markdown; charset=utf-8");
assertEquals(contentType("file.json"), "application/json; charset=utf-8");
assertEquals(contentType("text/html"), "text/html; charset=utf-8");
@@ -29,23 +29,23 @@ test(function testContentType() {
assertEquals(contentType(".htaccess"), undefined);
});
-test(function testExtension() {
+test(function testExtension(): void {
assertEquals(extension("application/octet-stream"), "bin");
assertEquals(extension("application/javascript"), "js");
assertEquals(extension("text/html"), "html");
});
-test(function testCharset() {
+test(function testCharset(): void {
assertEquals(charset("text/markdown"), "UTF-8");
assertEquals(charset("text/css"), "UTF-8");
});
-test(function testExtensions() {
+test(function testExtensions(): void {
assertEquals(extensions.get("application/javascript"), ["js", "mjs"]);
assertEquals(extensions.get("foo"), undefined);
});
-test(function testTypes() {
+test(function testTypes(): void {
assertEquals(types.get("js"), "application/javascript");
assertEquals(types.get("foo"), undefined);
});