mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Add length check test to _.flow & _.flowRight.
This commit is contained in:
@@ -2222,7 +2222,7 @@
|
|||||||
notStrictEqual(func(_.noop), _.noop);
|
notStrictEqual(func(_.noop), _.noop);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should return an identity function when no arguments are provided', 2, function() {
|
test('`_.' + methodName + '` should return an identity function when no arguments are provided', 3, function() {
|
||||||
var combined = func();
|
var combined = func();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@@ -2230,6 +2230,7 @@
|
|||||||
} catch(e) {
|
} catch(e) {
|
||||||
ok(false, e.message);
|
ok(false, e.message);
|
||||||
}
|
}
|
||||||
|
strictEqual(combined.length, 0);
|
||||||
notStrictEqual(combined, _.identity);
|
notStrictEqual(combined, _.identity);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user