From 7add87739a27bbe6899e46ee5f0312c2614da576 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 30 Mar 2016 23:31:55 -0700 Subject: [PATCH] Add `_.concat` test for shallow cloning `array`. --- test/test.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test.js b/test/test.js index f5e535b12..29442e928 100644 --- a/test/test.js +++ b/test/test.js @@ -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);