Skip to content

Commit

Permalink
#14 Test on multiple Node versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kadishmal committed Oct 5, 2016
1 parent 99dde5f commit 85656d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -3,7 +3,11 @@ sudo: required
language: node_js

node_js:
- 4
- 4.4
- 4.5
- 4.6
- 5
- 6

services:
- docker
Expand Down
4 changes: 3 additions & 1 deletion test/CUBRIDConnection.query.js
Expand Up @@ -1130,7 +1130,9 @@ describe('CUBRIDConnection', function () {
})
.catch(err => {
expect(err).to.be.an.instanceOf(Error);
expect(err.message).to.equal('This socket is closed.');
// Node `v6` reports an error that has no `.` at the end of the
// error message, while previous versions included the `.`.
expect(err.message).to.contain('This socket is closed');
});
});
});
Expand Down

0 comments on commit 85656d0

Please sign in to comment.