mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Add _.toPairs test for sets.
This commit is contained in:
14
test/test.js
14
test/test.js
@@ -23307,6 +23307,20 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
QUnit.test('`_.' + methodName + '` should convert sets', function(assert) {
|
||||||
|
assert.expect(1);
|
||||||
|
|
||||||
|
if (Set) {
|
||||||
|
var set = new Set;
|
||||||
|
set.add(1);
|
||||||
|
set.add(2);
|
||||||
|
assert.deepEqual(func(set), [[1, 1], [2, 2]]);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
skipAssert(assert);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
QUnit.test('`_.' + methodName + '` should convert strings', function(assert) {
|
QUnit.test('`_.' + methodName + '` should convert strings', function(assert) {
|
||||||
assert.expect(2);
|
assert.expect(2);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user