Skip to content

Commit

Permalink
add issue minimistjs#9 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz-io committed Oct 18, 2022
1 parent 62fde7d commit c04c7ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/fixes/issue-09.js
@@ -0,0 +1,13 @@
'use strict';

var test = require('tape');
var parse = require('../..');

test('Issue #9 fixed', function (t) {
var argv = parse(['-f123'], {
alias: { foo: ['f', 'g'] },
string: ['foo'],
});
t.deepEqual(argv, { _: [], f: '123', foo: '123', g: '123' });
t.end();
});

0 comments on commit c04c7ba

Please sign in to comment.