Skip to content

Commit

Permalink
chore: use chai 4.x (yargs#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
S Aruna authored and bcoe committed Jan 2, 2018
1 parent f4d01d0 commit 0942a15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"yargs-parser": "^8.1.0"
},
"devDependencies": {
"chai": "^3.4.1",
"chai": "^4.1.2",
"chalk": "^1.1.3",
"coveralls": "^2.11.11",
"cpr": "^2.0.0",
Expand Down
7 changes: 3 additions & 4 deletions test/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const expect = require('chai').expect
const checkOutput = require('./helpers/utils').checkOutput

require('chai').should()

const noop = () => {}

describe('Command', () => {
Expand All @@ -19,11 +18,11 @@ describe('Command', () => {
.command('foo <bar> [awesome]', 'my awesome command', yargs => yargs)
const command = y.getCommandInstance()
const handlers = command.getCommandHandlers()
handlers.foo.demanded.should.include({
handlers.foo.demanded.should.deep.include({
cmd: ['bar'],
variadic: false
})
handlers.foo.optional.should.include({
handlers.foo.optional.should.deep.include({
cmd: ['awesome'],
variadic: false
})
Expand Down Expand Up @@ -94,7 +93,7 @@ describe('Command', () => {
.command(['foo [awesome]', 'wat <yo>'], 'my awesome command')
const command = y.getCommandInstance()
const handlers = command.getCommandHandlers()
handlers.foo.optional.should.include({
handlers.foo.optional.should.deep.include({
cmd: ['awesome'],
variadic: false
})
Expand Down

0 comments on commit 0942a15

Please sign in to comment.