Code coverage report for lib/deps/explain404.js

Statements: 75% (3 / 4)      Branches: 40% (2 / 5)      Functions: 100% (1 / 1)      Lines: 75% (3 / 4)      Ignored: none     

All files » lib/deps/ » explain404.js
1 2 3 4 5 6 7 8 9 10 11        1 1814         1
'use strict';
 
// designed to give info to browser users, who are disturbed
// when they see 404s in the console
function explain404(str) {
  Iif (process.browser && 'console' in global && 'info' in console) {
    console.info('The above 404 is totally normal. ' + str);
  }
}
 
module.exports = explain404;