Fix test/test.js in lodash-node and carry fixes over to perf/perf.js.

This commit is contained in:
John-David Dalton
2014-01-29 08:54:38 -08:00
parent 973bc21f37
commit 8cdd6cd131
2 changed files with 28 additions and 23 deletions

View File

@@ -49,7 +49,11 @@
if (!amd) {
try {
return require.resolve(result);
result = require('fs').realpathSync(result);
} catch(e) { }
try {
result = require.resolve(result);
} catch(e) { }
}
return result;
@@ -65,7 +69,7 @@
/** The basename of the Lo-Dash file to test */
var basename = /[\w.-]+$/.exec(filePath)[0];
/** Detect if running in Java */
/** Detect if in a Java environment */
var isJava = !document && !!root.java;
/** Used to indicate testing a modularized build */