mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 07:17:50 +00:00
Add math operator method tests for objects.
This commit is contained in:
@@ -20840,6 +20840,13 @@
|
||||
});
|
||||
});
|
||||
|
||||
QUnit.test('`_.' + methodName + '` should convert objects to `NaN`', function(assert) {
|
||||
assert.expect(2);
|
||||
|
||||
assert.deepEqual(func(0, {}), NaN);
|
||||
assert.deepEqual(func({}, 0), NaN);
|
||||
});
|
||||
|
||||
QUnit.test('`_.' + methodName + '` should convert symbols to `NaN`', function(assert) {
|
||||
assert.expect(2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user