Skip to content

Commit

Permalink
test: add ignore for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Pennec committed Aug 15, 2019
1 parent 2223f59 commit 5e1f46f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/module.js
Expand Up @@ -74,6 +74,7 @@ module.exports = function module(moduleOptions) {
}
})

/* istanbul ignore if */
if (options.generate) {
consola.warn("The option `sitemap.generate` isn't needed anymore")
}
Expand Down Expand Up @@ -114,6 +115,7 @@ module.exports = function module(moduleOptions) {
res.end(gzip)
})
.catch(err => {
/* istanbul ignore next */
next(err)
})
}
Expand All @@ -133,6 +135,7 @@ module.exports = function module(moduleOptions) {
res.end(xml)
})
.catch(err => {
/* istanbul ignore next */
next(err)
})
}
Expand Down

0 comments on commit 5e1f46f

Please sign in to comment.