From d8a0d352265bb1e4fff4cc009b6a8a9dfbcce72d Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Thu, 14 Sep 2017 16:13:23 -0400 Subject: [PATCH] Fix mime reference in node-static-tests --- types/node-static/node-static-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/node-static/node-static-tests.ts b/types/node-static/node-static-tests.ts index 38abd8238d..3d68473e02 100644 --- a/types/node-static/node-static-tests.ts +++ b/types/node-static/node-static-tests.ts @@ -2,6 +2,6 @@ import { Server, version, mime } from 'node-static'; const server = new Server(__dirname); const pathname = server.resolve('./tsconfig.json'); -const mimetype = mime.lookup(pathname, ''); +const mimetype = mime.getType(pathname); const versionNum = version.join('.'); console.log(`The node-static server constructed an instance of itself, fetched the mimetype of ${pathname} (${mimetype}), and has a version of ${versionNum}! The package is working.`);