mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Add _.toArray test for empty strings.
This commit is contained in:
@@ -18327,8 +18327,9 @@
|
||||
});
|
||||
|
||||
QUnit.test('should convert strings to arrays', function(assert) {
|
||||
assert.expect(2);
|
||||
assert.expect(3);
|
||||
|
||||
assert.deepEqual(_.toArray(''), []);
|
||||
assert.deepEqual(_.toArray('ab'), ['a', 'b']);
|
||||
assert.deepEqual(_.toArray(Object('ab')), ['a', 'b']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user