Ignoring an else case for coverage of unit tests

This commit is contained in:
josdejong 2014-03-15 23:11:06 +01:00
parent e8cb8f91ce
commit baa2fb43c6

View File

@ -43,6 +43,8 @@ module.exports = function (math) {
if (isString(object)) {
// a string with a filename
// istanbul ignore else (we cannot unit test the else case in a node.js environment)
if (typeof (require) !== 'undefined') {
// load the file using require
var _module = require(object);