Skip to content

Commit

Permalink
Add Node.js 0.12 and io.js to .travis.yml; fix test break on io.js du…
Browse files Browse the repository at this point in the history
…e to IP address in error message for ECONNREFUSED.
  • Loading branch information
DavidAnson committed Feb 9, 2015
1 parent 7024291 commit a03100a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
language: node_js
node_js:
- "0.10"
- "0.12"
- iojs
script: "npm run-script test-cover"
after_script: "npm install coveralls && cat ./coverage/lcov.info | coveralls"
2 changes: 1 addition & 1 deletion test/checkPages_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function testOutput(test, ok, error, exception) {
test.equal(mock.logOk.shift().replace(/\(\d+ms\)/g, '(00ms)'), ok.shift(), 'Wrong logOk item');
}
while (mock.logError.length && error.length) {
test.equal(mock.logError.shift().replace(/\(\d+ms\)/g, '(00ms)'), error.shift(), 'Wrong logError item');
test.equal(mock.logError.shift().replace(/\(\d+ms\)/g, '(00ms)').replace(/ECONNREFUSED \d+\.\d+\.\d+\.\d+:\d+/g, 'ECONNREFUSED'), error.shift(), 'Wrong logError item');
}
test.done();
};
Expand Down

0 comments on commit a03100a

Please sign in to comment.