mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Update Underscore tests and excuse tests for edge features from the Underscore build.
This commit is contained in:
@@ -76,6 +76,11 @@
|
||||
'bindAll': [
|
||||
'throws an error for bindAll with no functions named'
|
||||
],
|
||||
'memoize': [
|
||||
'{"bar":"BAR","foo":"FOO"}',
|
||||
'"BAR"',
|
||||
'"FOO"'
|
||||
],
|
||||
'negate': true,
|
||||
'partial': [
|
||||
'can partially apply with placeholders',
|
||||
@@ -135,7 +140,7 @@
|
||||
delete QUnit.config.excused.Utility.times;
|
||||
delete QUnit.config.excused.Utility.uniqueId;
|
||||
}
|
||||
// only excuse in non-Underscore builds
|
||||
// only excuse for non-Underscore builds
|
||||
if (/\bunderscore\b/i.test(ui.buildPath)) {
|
||||
if (!ui.isModularize) {
|
||||
delete QUnit.config.excused.Functions.partial;
|
||||
@@ -149,7 +154,9 @@
|
||||
delete QUnit.config.excused.Utility['_.escape'];
|
||||
delete QUnit.config.excused.Utility['_.unescape'];
|
||||
}
|
||||
// only execuse edge features for the Underscore build
|
||||
else {
|
||||
delete QUnit.config.excused.Functions.memoize;
|
||||
delete QUnit.config.excused.Functions.negate;
|
||||
delete QUnit.config.excused.Objects.pick;
|
||||
delete QUnit.config.excused.Utility.noop;
|
||||
|
||||
Reference in New Issue
Block a user