mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
Ignoring an else case for coverage of unit tests
This commit is contained in:
parent
e8cb8f91ce
commit
baa2fb43c6
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user