From baa2fb43c6384bb2bbfc871db45237378930cd41 Mon Sep 17 00:00:00 2001 From: josdejong Date: Sat, 15 Mar 2014 23:11:06 +0100 Subject: [PATCH] Ignoring an else case for coverage of unit tests --- lib/function/utils/import.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/function/utils/import.js b/lib/function/utils/import.js index 3f75e2262..82c72fb88 100644 --- a/lib/function/utils/import.js +++ b/lib/function/utils/import.js @@ -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);