mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37: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) {
|
QUnit.test('`_.' + methodName + '` should convert symbols to `NaN`', function(assert) {
|
||||||
assert.expect(2);
|
assert.expect(2);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user