From dcd01dd02530df0e799eb4227087680ffeb80d74 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Wed, 24 Apr 2019 13:41:23 +0200 Subject: Eslint fixes (denoland/deno_std#356) Make warnings fail Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc --- media_types/test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'media_types') 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); }); -- cgit v1.2.3