mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Add math operator method tests for symbols.
This commit is contained in:
12
test/test.js
12
test/test.js
@@ -20840,6 +20840,18 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
QUnit.test('`_.' + methodName + '` should convert symbols to `NaN`', function(assert) {
|
||||||
|
assert.expect(2);
|
||||||
|
|
||||||
|
if (Symbol) {
|
||||||
|
assert.deepEqual(func(0, symbol), NaN);
|
||||||
|
assert.deepEqual(func(symbol, 0), NaN);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
skipAssert(assert, 2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
QUnit.test('`_.' + methodName + '` should return an unwrapped value when implicitly chaining', function(assert) {
|
QUnit.test('`_.' + methodName + '` should return an unwrapped value when implicitly chaining', function(assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user