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.ts38
1 files changed, 19 insertions, 19 deletions
diff --git a/media_types/test.ts b/media_types/test.ts
index 9ef78a8ab..d028448f9 100644
--- a/media_types/test.ts
+++ b/media_types/test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { test } from "../testing/mod.ts";
-import { assertEq } from "../testing/asserts.ts";
+import { assertEquals } from "../testing/asserts.ts";
import {
lookup,
contentType,
@@ -12,40 +12,40 @@ import {
} from "./mod.ts";
test(function testLookup() {
- assertEq(lookup("json"), "application/json");
- assertEq(lookup(".md"), "text/markdown");
- assertEq(lookup("folder/file.js"), "application/javascript");
- assertEq(lookup("folder/.htaccess"), undefined);
+ 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() {
- assertEq(contentType("markdown"), "text/markdown; charset=utf-8");
- assertEq(contentType("file.json"), "application/json; charset=utf-8");
- assertEq(contentType("text/html"), "text/html; charset=utf-8");
- assertEq(
+ 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");
+ assertEquals(
contentType("text/html; charset=iso-8859-1"),
"text/html; charset=iso-8859-1"
);
- assertEq(contentType(".htaccess"), undefined);
+ assertEquals(contentType(".htaccess"), undefined);
});
test(function testExtension() {
- assertEq(extension("application/octet-stream"), "bin");
- assertEq(extension("application/javascript"), "js");
- assertEq(extension("text/html"), "html");
+ assertEquals(extension("application/octet-stream"), "bin");
+ assertEquals(extension("application/javascript"), "js");
+ assertEquals(extension("text/html"), "html");
});
test(function testCharset() {
- assertEq(charset("text/markdown"), "UTF-8");
- assertEq(charset("text/css"), "UTF-8");
+ assertEquals(charset("text/markdown"), "UTF-8");
+ assertEquals(charset("text/css"), "UTF-8");
});
test(function testExtensions() {
- assertEq(extensions.get("application/javascript"), ["js", "mjs"]);
- assertEq(extensions.get("foo"), undefined);
+ assertEquals(extensions.get("application/javascript"), ["js", "mjs"]);
+ assertEquals(extensions.get("foo"), undefined);
});
test(function testTypes() {
- assertEq(types.get("js"), "application/javascript");
- assertEq(types.get("foo"), undefined);
+ assertEquals(types.get("js"), "application/javascript");
+ assertEquals(types.get("foo"), undefined);
});