mirror of
https://github.com/thangisme/notes.git
synced 2025-10-01 01:14:22 -04:00
Initial commit
This commit is contained in:
21
node_modules/yargs/test/parse_modified.js
generated
vendored
Normal file
21
node_modules/yargs/test/parse_modified.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
var should = require('chai').should(),
|
||||
yargs = require('../');
|
||||
|
||||
describe('parse', function () {
|
||||
|
||||
describe('boolean modifier function', function () {
|
||||
|
||||
it('should prevent yargs from sucking in the next option as the value of the first option', function () {
|
||||
|
||||
// Arrange & Act
|
||||
var result = yargs().boolean('b').parse([ '-b', '123' ]);
|
||||
|
||||
// Assert
|
||||
result.should.have.property('b').that.is.a('boolean').and.is.true;
|
||||
result.should.have.property('_').and.deep.equal([123]);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user