From a71cc552c9695124fa4de6c728b6da938528ff84 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 7 Jul 2014 01:51:48 -0700 Subject: [PATCH] Avoid test path for non node/phantom. --- test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index ace08b4cb..9a582239e 100644 --- a/test/test.js +++ b/test/test.js @@ -316,7 +316,7 @@ ].join('\n'))); } catch(e) { - if (typeof require != 'function') { + if (amd || isJava || typeof require != 'function' || !_.isObject(require.cache)) { return; } }