Skip to content

Commit 024b930

Browse files
maxrimuebcoe
authored andcommitted
fix: windows stuff (#10)
1 parent e419056 commit 024b930

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

appveyor.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
environment:
2-
nodejs_version: "4"
3-
nodejs_version: "6"
2+
matrix:
3+
- nodejs_version: "4"
4+
- nodejs_version: "6"
45

56
install:
67
- ps: Install-Product node $env:nodejs_version
@@ -10,3 +11,10 @@ test_script:
1011
- node --version
1112
- npm --version
1213
- npm test
14+
15+
os:
16+
- Windows Server 2012 R2
17+
18+
build: off
19+
20+
version: "{build}"

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ require('chai').should()
77
describe('setBlocking', function () {
88
// see: https://github.com/yargs/yargs/issues/497
99
it('does not truncate text printed to stdout when process.exit() is called', function (done) {
10-
exec('./test/fixtures/yargs-497-stdout.js', function (err, stdout, stderr) {
10+
exec('node ./test/fixtures/yargs-497-stdout.js', function (err, stdout, stderr) {
1111
if (err) return done(err)
1212
stdout.should.match(/line 2999/)
1313
return done()
1414
})
1515
})
1616

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

0 commit comments

Comments
 (0)