Add _.concat test for shallow cloning array.

This commit is contained in:
John-David Dalton
2016-03-30 23:31:55 -07:00
parent 2cd12c38e3
commit 7add87739a

View File

@@ -3056,6 +3056,16 @@
QUnit.module('lodash.concat');
(function() {
QUnit.test('should shallow clone `array`', function(assert) {
assert.expect(2);
var array = [1, 2, 3],
actual = _.concat(array);
assert.deepEqual(actual, array);
assert.notStrictEqual(actual, array);
});
QUnit.test('should concat arrays and values', function(assert) {
assert.expect(2);