mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Tweak truthy test for memoize resolve.
This commit is contained in:
@@ -12650,7 +12650,7 @@
|
||||
QUnit.test('should throw a TypeError if `resolve` is truthy and not a function', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
assert.raises(function() { _.memoize(noop, {}); }, TypeError);
|
||||
assert.raises(function() { _.memoize(noop, true); }, TypeError);
|
||||
});
|
||||
|
||||
QUnit.test('should not error if `resolver` is falsey', function(assert) {
|
||||
|
||||
Reference in New Issue
Block a user