Skip to content

Commit

Permalink
istanbul: ignore some stuff that are not tested by design.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 10, 2019
1 parent f1e7667 commit 1c3cbcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ app.set('json spaces', 2);
app.set('x-powered-by', false);

// Enable rollbar early on the middleware stack, if it's configured.
/* istanbul ignore if */
if (ENV.ROLLBAR_ACCESS_TOKEN) {
const rollbarOptions = {
accessToken: ENV.ROLLBAR_ACCESS_TOKEN,
Expand All @@ -71,6 +72,7 @@ if (ENV.ROLLBAR_ACCESS_TOKEN) {
console.log('WARNING: starting without rollbar');
}

/* istanbul ignore if */
if (NODE_ENV === 'production') {
// production
app.use(logger('combined'));
Expand Down Expand Up @@ -222,6 +224,7 @@ const map = sitemap({
}
});

/* istanbul ignore if */
if (ENV.ENABLE_CRAWLING) {
app.get('/sitemap.xml', (req, res) => {
map.generate4(app, [
Expand Down

0 comments on commit 1c3cbcf

Please sign in to comment.