mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-06-08 18:04:29 +00:00
v6
This commit is contained in:
parent
cd5893b2c6
commit
70742d22d9
6774 changed files with 1602535 additions and 1 deletions
16
node_modules/optimist/test/short.js
generated
vendored
Normal file
16
node_modules/optimist/test/short.js
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
var optimist = require('../index');
|
||||
var test = require('tap').test;
|
||||
|
||||
test('-n123', function (t) {
|
||||
t.plan(1);
|
||||
var parse = optimist.parse([ '-n123' ]);
|
||||
t.equal(parse.n, 123);
|
||||
});
|
||||
|
||||
test('-123', function (t) {
|
||||
t.plan(3);
|
||||
var parse = optimist.parse([ '-123', '456' ]);
|
||||
t.equal(parse['1'], true);
|
||||
t.equal(parse['2'], true);
|
||||
t.equal(parse['3'], 456);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue