mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Simplify AMD checks in test/test.js.
Former-commit-id: db2f72020e6171f30770c7ecc7caf1619b78ac88
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user