Simplify AMD checks in test/test.js.

Former-commit-id: db2f72020e6171f30770c7ecc7caf1619b78ac88
This commit is contained in:
John-David Dalton
2013-02-12 00:33:09 -08:00
parent 8024a25f2b
commit 0b2d26ec92

View File

@@ -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();