From 85f4cd6042edfc5c1d1cc5845b3091b855635fab Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Sat, 21 Jan 2017 18:14:47 -0800 Subject: [PATCH] fix: fix up a couple more tests --- test/command.js | 2 +- test/yargs.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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')