diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-24 13:41:23 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-24 07:41:22 -0400 |
| commit | dcd01dd02530df0e799eb4227087680ffeb80d74 (patch) | |
| tree | 8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /media_types | |
| parent | e1f7a60bb326f8299f339635c0738d28431afa0a (diff) | |
Eslint fixes (denoland/deno_std#356)
Make warnings fail
Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
Diffstat (limited to 'media_types')
| -rw-r--r-- | media_types/test.ts | 12 |
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); }); |
