express.Application is compatible with http.createServer

Add test case: express.Application is compatible with http.createServer
This commit is contained in:
TonyYang
2016-08-18 11:34:00 +08:00
committed by GitHub
parent 9b94d577a8
commit 5baa6e08ea

View File

@@ -1,4 +1,5 @@
/// <reference path="express.d.ts" />
/// <reference path="../node/node.d.ts" />
import * as express from 'express';
var app = express();
@@ -91,3 +92,10 @@ app.listen(3000);
const next: express.NextFunction = () => {};
const nextWithArgument: express.NextFunction = (err: any) => {};
/**
* The express.Application is compatible with http.createServer
*/
import * as http from 'http';
http.createServer(app);