mirror of
https://github.com/expressjs/express.git
synced 2026-02-21 19:41:36 +00:00
tests: exclude untestable lines in examples from coverage
This commit is contained in:
@@ -64,7 +64,8 @@ app.get('/users/:from-:to', function(req, res, next){
|
||||
res.send('users ' + names.slice(from, to).join(', '));
|
||||
});
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (!module.parent) {
|
||||
app.listen(3000);
|
||||
console.log('Express started on port 3000');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user