1
0
mirror of https://github.com/thangisme/notes.git synced 2026-06-15 17:39:54 -04:00

Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions

20
node_modules/yargs/test/short.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
var should = require('chai').should(),
yargs = require('../');
describe('short options', function () {
it ('should set n to the numeric value 123', function () {
var argv = yargs.parse([ '-n123' ]);
should.exist(argv);
argv.should.have.property('n', 123);
});
it ('should set option "1" to true, option "2" to true, and option "3" to numeric value 456', function () {
var argv = yargs.parse([ '-123', '456' ]);
should.exist(argv);
argv.should.have.property('1', true);
argv.should.have.property('2', true);
argv.should.have.property('3', 456);
});
});