From 7d97c9538447094d6875e02f2f639cb69c8735e1 Mon Sep 17 00:00:00 2001 From: Klemek Date: Mon, 15 Jul 2019 11:03:05 +0200 Subject: [PATCH] more unit tests --- test/utils.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/utils.test.js b/test/utils.test.js index f2b115c..1823322 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -14,6 +14,10 @@ describe('merge', () => { const res = utils.merge({'a': 'hello'}, {'a': 2}); expect(res).toEqual({'a': 'hello'}); }); + test('wrong type array', () => { + const res = utils.merge({'a': [1, 2, 3]}, {'a': {b: 5}}); + expect(res).toEqual({'a': [1, 2, 3]}); + }); test('array redefine', () => { const res = utils.merge({'a': [1, 2, 3]}, {'a': [4, 5, 6]}); expect(res).toEqual({'a': [4, 5, 6]});