From 95ff7d3aebc1a98b85d69cdde9c5bb0b99dd54d7 Mon Sep 17 00:00:00 2001 From: juergba Date: Fri, 12 Jul 2019 09:01:18 +0200 Subject: [PATCH] adapt existing test --- test/yargs-parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/yargs-parser.js b/test/yargs-parser.js index abcfaafd..c1996b1c 100644 --- a/test/yargs-parser.js +++ b/test/yargs-parser.js @@ -2445,7 +2445,7 @@ describe('yargs-parser', function () { }) describe('duplicate=true, flatten=false,', function () { describe('type=array', function () { - it('[-x 1 -x 2 -x 3] => [1, 2, 3]', function () { + it('[-x 1 -x 2 -x 3] => [[1], [2], [3]]', function () { var parsed = parser('-x 1 -x 2 -x 3', { array: ['x'], configuration: { @@ -2453,7 +2453,7 @@ describe('yargs-parser', function () { 'flatten-duplicate-arrays': false } }) - parsed['x'].should.deep.equal([1, 2, 3]) + parsed['x'].should.deep.equal([[1], [2], [3]]) }) it('[-x 1 2 3 -x 2 3 4] => [[1, 2, 3], [ 2, 3, 4]]', function () { var parsed = parser('-x 1 2 3 -x 2 3 4', {