Add _.toArray test for empty strings.

This commit is contained in:
John-David Dalton
2015-09-15 00:41:03 -07:00
parent 351c131764
commit a4ff501bb1

View File

@@ -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']);
});