8000 Simplify AMD checks in test/test.js. · lodash/lodash@0b2d26e · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b2d26e

Browse files
committed
Simplify AMD checks in test/test.js.
Former-commit-id: db2f72020e6171f30770c7ecc7caf1619b78ac88
1 parent 8024a25 commit 0b2d26e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test.js

Copy file name to clipboard
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,23 +137,23 @@
137137

138138
(function() {
139139
test('supports loading ' + basename + ' as the "lodash" module', function() {
140-
if (window.document && window.define && define.amd) {
140+
if (window.define && define.amd) {
141141
equal((lodashModule || {}).moduleName, 'lodash');
142142
} else {
143143
skipTest();
144144
}
145145
});
146146

147147
test('supports loading ' + basename + ' with the Require.js "shim" configuration option', function() {
148-
if (window.document && window.define && define.amd) {
148+
if (window.define && define.amd) {
149149
equal((shimmedModule || {}).moduleName, 'shimmed');
150150
} else {
151151
skipTest();
152152
}
153153
});
154154

155155
test('supports loading ' + basename + ' as the "underscore" module', function() {
156-
if (window.document && window.define && define.amd) {
156+
if (window.define && define.amd) {
157157
equal((underscoreModule || {}).moduleName, 'underscore');
158158
} else {
159159
skipTest();

0 commit comments

Comments
 (0)
0