mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 21:47:35 +00:00
Fix mime reference in node-static-tests
This commit is contained in:
parent
48de5e38db
commit
d8a0d35226
@ -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.`);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user