mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 03:46:07 +08:00
Fix mime.lookup call in node-static-tests.ts
This commit is contained in:
@@ -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.`);
|
||||
|
||||
Reference in New Issue
Block a user