From 5ca4425530733fdbd871a7297c5080e60eb3a6a3 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Sun, 24 Jan 2016 14:29:43 -0500 Subject: [PATCH 1/2] Add appveyor config --- appveyor.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..99a0ea23a --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,21 @@ +# Test against this version of Node.js +environment: + nodejs_version: "5" + +# Install scripts. (runs after repo cloning) +install: + # Get the latest stable version of Node.js or io.js + - ps: Install-Product node $env:nodejs_version + # install modules + - npm install + +# Post-install test scripts. +test_script: + # Output useful info for debugging. + - node --version + - npm --version + # run tests + - npm test + +# Don't actually build. +build: off From b9f37b77f2ce2f77e7749ef1a6ded3221f3ee8b0 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Sun, 24 Jan 2016 14:40:40 -0500 Subject: [PATCH 2/2] Assert stderr --- test/bin-readme.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/bin-readme.js b/test/bin-readme.js index 94c33a595..d2edd41bb 100644 --- a/test/bin-readme.js +++ b/test/bin-readme.js @@ -38,6 +38,7 @@ test('readme command', function (group) { var before = fs.readFileSync(path.join(d, 'README.md'), 'utf-8'); documentation(['readme index.js --diff-only -s API'], {cwd: d}, function (err, stdout, stderr) { var after = fs.readFileSync(path.join(d, 'README.md'), 'utf-8'); + t.equal(stderr, ''); t.ok(err); t.notEqual(err.code, 0, 'exit nonzero'); t.same(after, before, 'readme unchanged');