From 0b2d26ec9264979ef1c604ec7fcbbe6c6fe15a15 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 12 Feb 2013 00:33:09 -0800 Subject: [PATCH] Simplify AMD checks in test/test.js. Former-commit-id: db2f72020e6171f30770c7ecc7caf1619b78ac88 --- test/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 58352819e..baf0b82ff 100644 --- a/test/test.js +++ b/test/test.js @@ -137,7 +137,7 @@ (function() { test('supports loading ' + basename + ' as the "lodash" module', function() { - if (window.document && window.define && define.amd) { + if (window.define && define.amd) { equal((lodashModule || {}).moduleName, 'lodash'); } else { skipTest(); @@ -145,7 +145,7 @@ }); test('supports loading ' + basename + ' with the Require.js "shim" configuration option', function() { - if (window.document && window.define && define.amd) { + if (window.define && define.amd) { equal((shimmedModule || {}).moduleName, 'shimmed'); } else { skipTest(); @@ -153,7 +153,7 @@ }); test('supports loading ' + basename + ' as the "underscore" module', function() { - if (window.document && window.define && define.amd) { + if (window.define && define.amd) { equal((underscoreModule || {}).moduleName, 'underscore'); } else { skipTest();