mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Avoid chance fails by noConflict race conditions.
This commit is contained in:
@@ -8704,7 +8704,7 @@
|
||||
|
||||
test('should accept falsey arguments', 157, function() {
|
||||
var emptyArrays = _.map(falsey, function() { return []; }),
|
||||
isExported = '_' in root,
|
||||
isExposed = '_' in root,
|
||||
oldDash = root._;
|
||||
|
||||
_.forEach(acceptFalsey, function(methodName) {
|
||||
@@ -8721,7 +8721,7 @@
|
||||
});
|
||||
|
||||
if (methodName == 'noConflict') {
|
||||
if (isExported) {
|
||||
if (isExposed) {
|
||||
root._ = oldDash;
|
||||
} else {
|
||||
delete root._;
|
||||
|
||||
Reference in New Issue
Block a user