Skip to content

Commit 95ff7d3

Browse files
committed
adapt existing test
1 parent 52b0e87 commit 95ff7d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/yargs-parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,15 +2445,15 @@ describe('yargs-parser', function () {
24452445
})
24462446
describe('duplicate=true, flatten=false,', function () {
24472447
describe('type=array', function () {
2448-
it('[-x 1 -x 2 -x 3] => [1, 2, 3]', function () {
2448+
it('[-x 1 -x 2 -x 3] => [[1], [2], [3]]', function () {
24492449
var parsed = parser('-x 1 -x 2 -x 3', {
24502450
array: ['x'],
24512451
configuration: {
24522452
'duplicate-arguments-array': true,
24532453
'flatten-duplicate-arrays': false
24542454
}
24552455
})
2456-
parsed['x'].should.deep.equal([1, 2, 3])
2456+
parsed['x'].should.deep.equal([[1], [2], [3]])
24572457
})
24582458
it('[-x 1 2 3 -x 2 3 4] => [[1, 2, 3], [ 2, 3, 4]]', function () {
24592459
var parsed = parser('-x 1 2 3 -x 2 3 4', {

0 commit comments

Comments
 (0)