Skip to content

Commit

Permalink
fix: windows stuff (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrimue authored and bcoe committed Dec 18, 2016
1 parent e419056 commit 024b930
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
environment:
nodejs_version: "4"
nodejs_version: "6"
matrix:
- nodejs_version: "4"
- nodejs_version: "6"

install:
- ps: Install-Product node $env:nodejs_version
Expand All @@ -10,3 +11,10 @@ test_script:
- node --version
- npm --version
- npm test

os:
- Windows Server 2012 R2

build: off

version: "{build}"
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ require('chai').should()
describe('setBlocking', function () {
// see: https://github.com/yargs/yargs/issues/497
it('does not truncate text printed to stdout when process.exit() is called', function (done) {
exec('./test/fixtures/yargs-497-stdout.js', function (err, stdout, stderr) {
exec('node ./test/fixtures/yargs-497-stdout.js', function (err, stdout, stderr) {
if (err) return done(err)
stdout.should.match(/line 2999/)
return done()
})
})

it('does not truncate text printed to stderr when process.exit() is called', function (done) {
exec('./test/fixtures/yargs-497-stderr.js', function (err, stdout, stderr) {
exec('node ./test/fixtures/yargs-497-stderr.js', function (err, stdout, stderr) {
err.should.match(/Command failed/)
stderr.should.match(/line 2999/)
return done()
Expand Down

0 comments on commit 024b930

Please sign in to comment.