Sha256: bbcc699b6392b0d7921600f64f6d37b80c17f8c76d539a7968c38a7a6a883e38

Contents?: true

Size: 441 Bytes

Versions: 342

Compression:

Stored size: 441 Bytes

Contents

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

test('dotted alias', function (t) {
    var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
    t.equal(argv.a.b, 22);
    t.equal(argv.aa.bb, 22);
    t.end();
});

test('dotted default', function (t) {
    var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
    t.equal(argv.a.b, 11);
    t.equal(argv.aa.bb, 11);
    t.end();
});

Version data entries

342 entries across 273 versions & 33 rubygems

Version Path
govuk_publishing_components-17.0.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.29.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.28.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.27.1 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.27.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.26.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.25.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.24.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.23.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.22.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.21.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.20.1 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.20.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.19.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.18.0 node_modules/minimist/test/dotted.js
govuk_publishing_components-16.17.0 node_modules/minimist/test/dotted.js
ela-4.1.6 node_modules/mkdirp/node_modules/minimist/test/dotted.js
ela-4.1.5 node_modules/mkdirp/node_modules/minimist/test/dotted.js
ela-4.1.4 node_modules/mkdirp/node_modules/minimist/test/dotted.js
ela-4.1.3 node_modules/mkdirp/node_modules/minimist/test/dotted.js