From 9c5c1012c0b9c239a82cdf5ab465d1796071b84a Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Mon, 10 Oct 2016 09:10:25 +0100 Subject: [PATCH] upgrade deps --- .travis.yml | 2 +- package.json | 14 +++++++------- test/alias.js | 10 ++++++---- test/bad-input.js | 8 +++++--- test/class-argv.js | 12 +++++++----- test/class-definitions.js | 10 ++++++---- test/default-option.js | 16 +++++++++------- test/default-value.js | 12 +++++++----- test/detect-process-argv.js | 8 +++++--- test/exceptions.js | 22 ++++++++++++---------- test/grouping.js | 8 +++++--- test/name-alias-mix.js | 6 ++++-- test/name-unicode.js | 6 ++++-- test/notations.js | 8 +++++--- test/type-boolean-multiple.js | 6 ++++-- test/type-boolean.js | 8 +++++--- test/type-none.js | 14 ++++++++------ test/type-number-multiple.js | 8 +++++--- test/type-number.js | 6 ++++-- test/type-other-multiple.js | 6 ++++-- test/type-other.js | 8 +++++--- test/type-string.js | 8 +++++--- 22 files changed, 123 insertions(+), 83 deletions(-) diff --git a/.travis.yml b/.travis.yml index 361f05d..a7ad55a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,4 @@ node_js: - 4 - iojs - 0.12 - - 0.10 + - '0.10' diff --git a/package.json b/package.json index 8fa0d3d..8e6835b 100644 --- a/package.json +++ b/package.json @@ -27,19 +27,19 @@ "author": "Lloyd Brookes <75pound@gmail.com>", "license": "MIT", "devDependencies": { - "babel-preset-es2015": "^6.9.0", - "core-assert": "~0.2.0", - "coveralls": "^2.11.12", - "jsdoc-to-markdown": "^1.3.6", - "test-runner": "~0.1.6", - "test-value": "^2.0.0" + "babel-preset-es2015": "^6.16.0", + "core-assert": "^0.2.1", + "coveralls": "^2.11.14", + "jsdoc-to-markdown": "^2.0.0", + "test-runner": "^0.2.5", + "test-value": "^2.1.0" }, "dependencies": { "array-back": "^1.0.3", "core-js": "^2.4.1", "feature-detect-es6": "^1.3.1", "find-replace": "^1.0.2", - "typical": "^2.5.0" + "typical": "^2.6.0" }, "standard": { "ignore": [ diff --git a/test/alias.js b/test/alias.js index 5387fd9..1da91fc 100644 --- a/test/alias.js +++ b/test/alias.js @@ -1,8 +1,10 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') +var runner = new TestRunner() + var optionDefinitions = [ { name: 'verbose', alias: 'v' }, { name: 'colour', alias: 'c' }, @@ -10,21 +12,21 @@ var optionDefinitions = [ { name: 'dry-run', alias: 'd' } ] -test('alias: one boolean', function () { +runner.test('alias: one boolean', function () { var argv = [ '-v' ] a.deepStrictEqual(cliArgs(optionDefinitions, argv), { verbose: true }) }) -test('alias: one --this-type boolean', function () { +runner.test('alias: one --this-type boolean', function () { var argv = [ '-d' ] a.deepStrictEqual(cliArgs(optionDefinitions, argv), { 'dry-run': true }) }) -test('alias: one boolean, one string', function () { +runner.test('alias: one boolean, one string', function () { var argv = [ '-v', '-c' ] a.deepStrictEqual(cliArgs(optionDefinitions, argv), { verbose: true, diff --git a/test/bad-input.js b/test/bad-input.js index af4aa5b..02455f8 100644 --- a/test/bad-input.js +++ b/test/bad-input.js @@ -1,9 +1,11 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') -test('bad-input: handles missing option value', function () { +var runner = new TestRunner() + +runner.test('bad-input: handles missing option value', function () { var optionDefinitions = [ { name: 'colour', type: String }, { name: 'files' } @@ -17,7 +19,7 @@ test('bad-input: handles missing option value', function () { }) }) -test('bad-input: handles arrays with relative paths', function () { +runner.test('bad-input: handles arrays with relative paths', function () { var optionDefinitions = [ { name: 'colours', type: String, multiple: true } ] diff --git a/test/class-argv.js b/test/class-argv.js index e3fa7a2..f2e6d98 100644 --- a/test/class-argv.js +++ b/test/class-argv.js @@ -1,5 +1,5 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var detect = require('feature-detect-es6') var a = require('core-assert') var Argv @@ -14,7 +14,9 @@ if (detect.all('class', 'arrowFunction', 'newArrayFeatures')) { Definitions = require('../es5/definitions') } -test('.expandOptionEqualsNotation()', function () { +var runner = new TestRunner() + +runner.test('.expandOptionEqualsNotation()', function () { var argv = new Argv([ '--one=1', '--two', '2', '--three=3', '4' ]) argv.expandOptionEqualsNotation() a.deepStrictEqual(argv.list, [ @@ -22,7 +24,7 @@ test('.expandOptionEqualsNotation()', function () { ]) }) -test('.expandGetoptNotation()', function () { +runner.test('.expandGetoptNotation()', function () { var argv = new Argv([ '-abc' ]) argv.expandGetoptNotation() a.deepStrictEqual(argv.list, [ @@ -30,7 +32,7 @@ test('.expandGetoptNotation()', function () { ]) }) -test('.expandGetoptNotation() with values', function () { +runner.test('.expandGetoptNotation() with values', function () { var argv = new Argv([ '-abc', '1', '-a', '2', '-bc' ]) argv.expandGetoptNotation() a.deepStrictEqual(argv.list, [ @@ -38,7 +40,7 @@ test('.expandGetoptNotation() with values', function () { ]) }) -test('.validate()', function () { +runner.test('.validate()', function () { var definitions = new Definitions([ { name: 'one', type: Number } ]) diff --git a/test/class-definitions.js b/test/class-definitions.js index 15bfd98..9f02660 100644 --- a/test/class-definitions.js +++ b/test/class-definitions.js @@ -1,5 +1,5 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var detect = require('feature-detect-es6') var a = require('core-assert') var Definitions @@ -11,17 +11,19 @@ if (detect.all('class', 'arrowFunction', 'newArrayFeatures')) { Definitions = require('../es5/definitions') } -test('.createOutput()', function () { +var runner = new TestRunner() + +runner.test('.createOutput()', function () { var definitions = new Definitions([ { name: 'one', defaultValue: 'eins' } ]) a.deepStrictEqual(definitions.createOutput(), { one: 'eins' }) }) -test('.get()', function () { +runner.test('.get()', function () { var definitions = new Definitions([ { name: 'one', defaultValue: 'eins' } ]) a.strictEqual(definitions.get('--one').name, 'one') }) -test('.validate()', function () { +runner.test('.validate()', function () { a.throws(function () { var definitions = new Definitions([ { name: 'one' }, { name: 'one' } ]) }) diff --git a/test/default-option.js b/test/default-option.js index d82cbb5..8dc200c 100644 --- a/test/default-option.js +++ b/test/default-option.js @@ -1,9 +1,11 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') -test('defaultOption: string', function () { +var runner = new TestRunner() + +runner.test('defaultOption: string', function () { var optionDefinitions = [ { name: 'files', defaultOption: true } ] @@ -13,7 +15,7 @@ test('defaultOption: string', function () { }) }) -test('defaultOption: multiple string', function () { +runner.test('defaultOption: multiple string', function () { var optionDefinitions = [ { name: 'files', defaultOption: true, multiple: true } ] @@ -23,7 +25,7 @@ test('defaultOption: multiple string', function () { }) }) -test('defaultOption: after a boolean', function () { +runner.test('defaultOption: after a boolean', function () { var definitions = [ { name: 'one', type: Boolean }, { name: 'two', defaultOption: true } @@ -34,7 +36,7 @@ test('defaultOption: after a boolean', function () { ) }) -test('defaultOption: multiple defaultOption values between other arg/value pairs', function () { +runner.test('defaultOption: multiple defaultOption values between other arg/value pairs', function () { var optionDefinitions = [ { name: 'one' }, { name: 'two' }, @@ -48,7 +50,7 @@ test('defaultOption: multiple defaultOption values between other arg/value pairs }) }) -test('defaultOption: multiple defaultOption values between other arg/value pairs 2', function () { +runner.test('defaultOption: multiple defaultOption values between other arg/value pairs 2', function () { var optionDefinitions = [ { name: 'one', type: Boolean }, { name: 'two' }, @@ -62,7 +64,7 @@ test('defaultOption: multiple defaultOption values between other arg/value pairs }) }) -test('defaultOption: floating args present but no defaultOption', function () { +runner.test('defaultOption: floating args present but no defaultOption', function () { var definitions = [ { name: 'one', type: Boolean } ] diff --git a/test/default-value.js b/test/default-value.js index 7472d60..3c756f8 100644 --- a/test/default-value.js +++ b/test/default-value.js @@ -1,9 +1,11 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') -test('default value', function () { +var runner = new TestRunner() + +runner.test('default value', function () { a.deepStrictEqual(cliArgs([ { name: 'one' }, { name: 'two', defaultValue: 'two' } ], [ '--one', '1' ]), { one: '1', two: 'two' @@ -20,13 +22,13 @@ test('default value', function () { ) }) -test('default value', function () { +runner.test('default value 2', function () { var defs = [{ name: 'two', multiple: true, defaultValue: ['two', 'zwei'] }] var result = cliArgs(defs, []) a.deepStrictEqual(result, { two: [ 'two', 'zwei' ] }) }) -test('default value: array as defaultOption', function () { +runner.test('default value: array as defaultOption', function () { var defs = [ { name: 'two', multiple: true, defaultValue: ['two', 'zwei'], defaultOption: true } ] @@ -34,7 +36,7 @@ test('default value: array as defaultOption', function () { a.deepStrictEqual(cliArgs(defs, argv), { two: [ 'duo' ] }) }) -test('default value: falsy default values', function () { +runner.test('default value: falsy default values', function () { var defs = [ { name: 'one', defaultValue: 0 }, { name: 'two', defaultValue: false } diff --git a/test/detect-process-argv.js b/test/detect-process-argv.js index 892f259..56c3f32 100644 --- a/test/detect-process-argv.js +++ b/test/detect-process-argv.js @@ -1,16 +1,18 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') -test('detect process.argv: should automatically remove first two argv items', function () { +var runner = new TestRunner() + +runner.test('detect process.argv: should automatically remove first two argv items', function () { process.argv = [ 'node', 'filename', '--one', 'eins' ] a.deepStrictEqual(cliArgs({ name: 'one' }, process.argv), { one: 'eins' }) }) -test('process.argv is left untouched', function () { +runner.test('process.argv is left untouched', function () { process.argv = [ 'node', 'filename', '--one', 'eins' ] a.deepStrictEqual(cliArgs({ name: 'one' }), { one: 'eins' diff --git a/test/exceptions.js b/test/exceptions.js index c67d63a..6310b5f 100644 --- a/test/exceptions.js +++ b/test/exceptions.js @@ -1,9 +1,11 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') -test('err-invalid-definition: throws when no definition.name specified', function () { +var runner = new TestRunner() + +runner.test('err-invalid-definition: throws when no definition.name specified', function () { var optionDefinitions = [ { something: 'one' }, { something: 'two' } @@ -17,7 +19,7 @@ test('err-invalid-definition: throws when no definition.name specified', functio } }) -test('err-invalid-definition: throws if dev set a numeric alias', function () { +runner.test('err-invalid-definition: throws if dev set a numeric alias', function () { var optionDefinitions = [ { name: 'colours', alias: '1' } ] @@ -31,7 +33,7 @@ test('err-invalid-definition: throws if dev set a numeric alias', function () { } }) -test('err-invalid-definition: throws if dev set an alias of "-"', function () { +runner.test('err-invalid-definition: throws if dev set an alias of "-"', function () { var optionDefinitions = [ { name: 'colours', alias: '-' } ] @@ -45,7 +47,7 @@ test('err-invalid-definition: throws if dev set an alias of "-"', function () { } }) -test('err-invalid-definition: multi-character alias', function () { +runner.test('err-invalid-definition: multi-character alias', function () { var optionDefinitions = [ { name: 'one', alias: 'aa' } ] @@ -59,7 +61,7 @@ test('err-invalid-definition: multi-character alias', function () { } }) -test('err-invalid-definition: invalid type values', function () { +runner.test('err-invalid-definition: invalid type values', function () { var argv = [ '--one', 'something' ] try { cliArgs([ { name: 'one', type: 'string' } ], argv) @@ -87,7 +89,7 @@ test('err-invalid-definition: invalid type values', function () { }, /invalid/i) }) -test('err-invalid-definition: value without option definition', function () { +runner.test('err-invalid-definition: value without option definition', function () { var optionDefinitions = [ { name: 'one', type: Number } ] @@ -126,7 +128,7 @@ test('err-invalid-definition: value without option definition', function () { } }) -test('err-invalid-definition: duplicate name', function () { +runner.test('err-invalid-definition: duplicate name', function () { var optionDefinitions = [ { name: 'colours' }, { name: 'colours' } @@ -141,7 +143,7 @@ test('err-invalid-definition: duplicate name', function () { } }) -test('err-invalid-definition: duplicate alias', function () { +runner.test('err-invalid-definition: duplicate alias', function () { var optionDefinitions = [ { name: 'one', alias: 'a' }, { name: 'two', alias: 'a' } @@ -156,7 +158,7 @@ test('err-invalid-definition: duplicate alias', function () { } }) -test('err-invalid-definition: multiple defaultOption', function () { +runner.test('err-invalid-definition: multiple defaultOption', function () { var optionDefinitions = [ { name: 'one', defaultOption: true }, { name: 'two', defaultOption: true } diff --git a/test/grouping.js b/test/grouping.js index cdc9abc..542e59e 100644 --- a/test/grouping.js +++ b/test/grouping.js @@ -1,5 +1,5 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') @@ -9,7 +9,9 @@ var optionDefinitions = [ { name: 'three', group: 'b' } ] -test('groups', function () { +var runner = new TestRunner() + +runner.test('groups', function () { a.deepStrictEqual(cliArgs(optionDefinitions, [ '--one', '1', '--two', '2', '--three', '3' ]), { a: { one: '1', @@ -26,7 +28,7 @@ test('groups', function () { }) }) -test('groups: multiple and _none', function () { +runner.test('groups: multiple and _none', function () { var optionDefinitions = [ { name: 'one', group: ['a', 'f'] }, { name: 'two', group: ['a', 'g'] }, diff --git a/test/name-alias-mix.js b/test/name-alias-mix.js index 7c54897..e51b64a 100644 --- a/test/name-alias-mix.js +++ b/test/name-alias-mix.js @@ -1,8 +1,10 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') +var runner = new TestRunner() + var optionDefinitions = [ { name: 'one', alias: 'o' }, { name: 'two', alias: 't' }, @@ -10,7 +12,7 @@ var optionDefinitions = [ { name: 'four', alias: 'f' } ] -test('name-alias-mix: one of each', function () { +runner.test('name-alias-mix: one of each', function () { var argv = [ '--one', '-t', '--three' ] var result = cliArgs(optionDefinitions, argv) a.strictEqual(result.one, true) diff --git a/test/name-unicode.js b/test/name-unicode.js index 8621540..691f926 100644 --- a/test/name-unicode.js +++ b/test/name-unicode.js @@ -1,15 +1,17 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') +var runner = new TestRunner() + var optionDefinitions = [ { name: 'один' }, { name: '两' }, { name: 'три', alias: 'т' } ] -test('name-unicode: unicode names and aliases are permitted', function () { +runner.test('name-unicode: unicode names and aliases are permitted', function () { var argv = [ '--один', '1', '--两', '2', '-т', '3' ] var result = cliArgs(optionDefinitions, argv) a.strictEqual(result.один, '1') diff --git a/test/notations.js b/test/notations.js index 90c711e..4057676 100644 --- a/test/notations.js +++ b/test/notations.js @@ -1,9 +1,11 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') -test('getOpt short notation: two flags, one option', function () { +var runner = new TestRunner() + +runner.test('getOpt short notation: two flags, one option', function () { var optionDefinitions = [ { name: 'flagA', alias: 'a' }, { name: 'flagB', alias: 'b' }, @@ -18,7 +20,7 @@ test('getOpt short notation: two flags, one option', function () { }) }) -test('option=value notation: two plus a regular notation', function () { +runner.test('option=value notation: two plus a regular notation', function () { var optionDefinitions = [ { name: 'one' }, { name: 'two' }, diff --git a/test/type-boolean-multiple.js b/test/type-boolean-multiple.js index 843e893..6a277ed 100644 --- a/test/type-boolean-multiple.js +++ b/test/type-boolean-multiple.js @@ -1,13 +1,15 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') +var runner = new TestRunner() + var optionDefinitions = [ { name: 'array', type: Boolean, multiple: true } ] -test('type-boolean-multiple: 1', function () { +runner.test('type-boolean-multiple: 1', function () { var argv = [ '--array', '--array', '--array' ] var result = cliArgs(optionDefinitions, argv) a.deepStrictEqual(result, { diff --git a/test/type-boolean.js b/test/type-boolean.js index 8b837ee..9e004fe 100644 --- a/test/type-boolean.js +++ b/test/type-boolean.js @@ -1,9 +1,11 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') -test('type-boolean: different values', function () { +var runner = new TestRunner() + +runner.test('type-boolean: different values', function () { var optionDefinitions = [ { name: 'one', type: Boolean } ] @@ -29,7 +31,7 @@ test('type-boolean: different values', function () { var origBoolean = Boolean /* test in contexts which override the standard global Boolean constructor */ -test('type-boolean: global Boolean overridden', function () { +runner.test('type-boolean: global Boolean overridden', function () { function Boolean () { return origBoolean.apply(origBoolean, arguments) } diff --git a/test/type-none.js b/test/type-none.js index e0b7ea9..8aba98d 100644 --- a/test/type-none.js +++ b/test/type-none.js @@ -1,20 +1,22 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') +var runner = new TestRunner() + var optionDefinitions = [ { name: 'one' }, { name: 'two' } ] -test('name: no argv values', function () { +runner.test('name: no argv values', function () { var argv = [] var result = cliArgs(optionDefinitions, argv) a.deepStrictEqual(result, {}) }) -test('name: just names, no values', function () { +runner.test('name: just names, no values', function () { var argv = [ '--one', '--two' ] var result = cliArgs(optionDefinitions, argv) a.deepStrictEqual(result, { @@ -23,7 +25,7 @@ test('name: just names, no values', function () { }) }) -test('name: just names, no values, unpassed value', function () { +runner.test('name: just names, no values, unpassed value', function () { var argv = [ '--one', '--two' ] var result = cliArgs(optionDefinitions, argv) a.deepStrictEqual(result, { @@ -32,7 +34,7 @@ test('name: just names, no values, unpassed value', function () { }) }) -test('name: just names, one value, one unpassed value', function () { +runner.test('name: just names, one value, one unpassed value', function () { var argv = [ '--one', 'one', '--two' ] var result = cliArgs(optionDefinitions, argv) a.deepStrictEqual(result, { @@ -41,7 +43,7 @@ test('name: just names, one value, one unpassed value', function () { }) }) -test('name: just names, two values', function () { +runner.test('name: just names, two values', function () { var argv = [ '--one', 'one', '--two', 'two' ] var result = cliArgs(optionDefinitions, argv) a.deepStrictEqual(result, { diff --git a/test/type-number-multiple.js b/test/type-number-multiple.js index fe815a0..4b26c56 100644 --- a/test/type-number-multiple.js +++ b/test/type-number-multiple.js @@ -1,5 +1,5 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') @@ -7,7 +7,9 @@ var optionDefinitions = [ { name: 'array', type: Number, multiple: true } ] -test('number multiple: 1', function () { +var runner = new TestRunner() + +runner.test('number multiple: 1', function () { var argv = [ '--array', '1', '2', '3' ] var result = cliArgs(optionDefinitions, argv) a.deepStrictEqual(result, { @@ -18,7 +20,7 @@ test('number multiple: 1', function () { }) }) -test('number multiple: 2', function () { +runner.test('number multiple: 2', function () { var argv = [ '--array', '1', '--array', '2', '--array', '3' ] var result = cliArgs(optionDefinitions, argv) a.deepStrictEqual(result, { diff --git a/test/type-number.js b/test/type-number.js index 1a22e0d..07de056 100644 --- a/test/type-number.js +++ b/test/type-number.js @@ -1,5 +1,5 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') @@ -7,7 +7,9 @@ var optionDefinitions = [ { name: 'one', type: Number } ] -test('type-number: different values', function () { +var runner = new TestRunner() + +runner.test('type-number: different values', function () { a.deepStrictEqual( cliArgs(optionDefinitions, [ '--one', '1' ]), { one: 1 } diff --git a/test/type-other-multiple.js b/test/type-other-multiple.js index f4f9ffe..a12227c 100644 --- a/test/type-other-multiple.js +++ b/test/type-other-multiple.js @@ -1,5 +1,5 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') @@ -9,7 +9,9 @@ var optionDefinitions = [ }} ] -test('type-other-multiple: different values', function () { +var runner = new TestRunner() + +runner.test('type-other-multiple: different values', function () { a.deepStrictEqual( cliArgs(optionDefinitions, [ '--file', 'one.js' ]), { file: [ 'one.js' ] } diff --git a/test/type-other.js b/test/type-other.js index 0f4ad27..11113bf 100644 --- a/test/type-other.js +++ b/test/type-other.js @@ -1,9 +1,11 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') -test('type-other: different values', function () { +var runner = new TestRunner() + +runner.test('type-other: different values', function () { var optionDefinitions = [ { name: 'file', type: function (file) { return file @@ -20,7 +22,7 @@ test('type-other: different values', function () { ) }) -test('type-other: broken custom type function', function () { +runner.test('type-other: broken custom type function', function () { var optionDefinitions = [ { name: 'file', type: function (file) { lasdfjsfakn diff --git a/test/type-string.js b/test/type-string.js index 426f193..89ebd1a 100644 --- a/test/type-string.js +++ b/test/type-string.js @@ -1,5 +1,5 @@ 'use strict' -var test = require('test-runner') +var TestRunner = require('test-runner') var cliArgs = require('../') var a = require('core-assert') @@ -7,7 +7,9 @@ var optionDefinitions = [ { name: 'one', type: String } ] -test('type-string: different values', function () { +var runner = new TestRunner() + +runner.test('type-string: different values', function () { a.deepStrictEqual( cliArgs(optionDefinitions, [ '--one', 'yeah' ]), { one: 'yeah' } @@ -23,7 +25,7 @@ test('type-string: different values', function () { }) /* currently not supported, it would complain --yeah is an invalid option */ -test.skip('type-string: pass a value resembling an option', function () { +runner.skip('type-string: pass a value resembling an option', function () { a.deepStrictEqual( cliArgs(optionDefinitions, [ '--one', '--yeah' ]), { one: '--yeah' }