Fix mime.lookup call in node-static-tests.ts

This commit is contained in:
Nathan Shively-Sanders
2017-06-19 14:18:03 -07:00
parent 3fe753b21c
commit ebeece2d8e

View File

@@ -2,6 +2,6 @@ import {Server, version, mime} from 'node-static';
let server = new Server(__dirname);
let pathname = server.resolve('./tsconfig.json');
let mimetype = mime.lookup(pathname);
let mimetype = mime.lookup(pathname, '');
let 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.`);