Skip to content

Commit

Permalink
fix: fake a tty in tests, so that we can use the new set-blocking (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed May 21, 2016
1 parent 2a73ed4 commit a54c742
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -20,7 +20,7 @@
"pkg-conf": "^1.1.2",
"read-pkg-up": "^1.0.1",
"require-main-filename": "^1.0.1",
"set-blocking": "^1.0.0",
"set-blocking": "^2.0.0",
"string-width": "^1.0.1",
"window-size": "^0.2.0",
"y18n": "^3.2.1",
Expand Down Expand Up @@ -70,4 +70,4 @@
"engine": {
"node": ">=0.10"
}
}
}
5 changes: 5 additions & 0 deletions test/fixtures/issue-497.js
@@ -1,4 +1,9 @@
#!/usr/bin/env node

// pretend we are a TTY
process.stdout.isTTY = true
process.stderr.isTTY = true

var yargs = require('../../index')
var y = yargs.command('download <url> <files..>', 'make a get HTTP request')
.help()
Expand Down

0 comments on commit a54c742

Please sign in to comment.