From 03041f87c33318cc347e890d7e0e0128efb77bf4 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 1 Sep 2013 19:25:19 -0500 Subject: [PATCH] Tweak how `filePath` is resolved to work with `lodash-node`. --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 516379db1..ba622ef07 100644 --- a/test/test.js +++ b/test/test.js @@ -34,7 +34,7 @@ : '../lodash.js'; try { - return global.require('fs').realpathSync(result); + return typeof define == 'undefined' && require('fs').realpathSync(result); } catch(e) { return result; }