Update test cases to test req.res, req.next, res.req

This commit is contained in:
Satana Charuwichitratana
2018-06-03 19:56:10 +07:00
parent afeac2b7eb
commit e92ce1352a
+7
View File
@@ -131,6 +131,13 @@ namespace express_tests {
app.use(router);
// Test req.res, req.next, res.req should exists after middleware.init
app.use((req, res) => {
req.res;
req.next;
res.req;
});
app.listen(3000);
const next: express.NextFunction = () => { };