diff --git a/test/command.js b/test/command.js index 8fd99427e..2243419f0 100644 --- a/test/command.js +++ b/test/command.js @@ -1,4 +1,4 @@ -/* global describe, it, beforeEach */ +/* global context, describe, it, beforeEach */ var yargs = require('../') var expect = require('chai').expect var checkOutput = require('./helpers/utils').checkOutput diff --git a/test/yargs.js b/test/yargs.js index 3bbca7d3c..2c98116d0 100644 --- a/test/yargs.js +++ b/test/yargs.js @@ -222,6 +222,8 @@ describe('yargs dsl tests', function () { .group('foo', 'Group:') .strict() .exitProcess(false) // defaults to true. + .global('foo', false) + .global('qux', false) .env('YARGS') .reset() @@ -1292,7 +1294,7 @@ describe('yargs dsl tests', function () { .implies({ z: 'w' }) - .global(['x']) + .global(['z'], false) .reset() var implied = y.getValidationInstance().getImplied() Object.keys(implied).should.include('x')