tests: exclude untestable lines in examples from coverage

This commit is contained in:
Douglas Christopher Wilson
2014-05-28 00:07:27 -04:00
parent 1d54868c12
commit c18c2a8e68
27 changed files with 91 additions and 39 deletions

View File

@@ -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');
}
}