Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Add current Node.js versions to Travis CI config #26

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ matrix:
- node_js: 0.10
- node_js: 0.11
- node_js: 0.12
- node_js: 4
- node_js: 5
branches:
only:
- master # only run CI on the master branch
Expand Down
6 changes: 4 additions & 2 deletions tests/specs/mock/query-resource.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ describe('Query Resource Mock', function() {
}
else {
expect(res2.body).to.be.empty;
expect(res2.text).to.have.lengthOf(258441);
// There is some variability here, due to control characters in the file
expect(res2.text).to.have.length.above(258000).and.below(259000);
}
done();
}));
Expand Down Expand Up @@ -597,7 +598,8 @@ describe('Query Resource Mock', function() {
}
else {
expect(res2.body).to.be.empty;
expect(res2.text).to.have.lengthOf(258441);
// There is some variability here, due to control characters in the file
expect(res2.text).to.have.length.above(258000).and.below(259000);
}
done();
}));
Expand Down
1 change: 1 addition & 0 deletions tests/specs/param-parser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ describe('ParamParser middleware', function() {

helper.supertest(express)
.post('/api/pets')
.unset('Content-Length')
.end(helper.checkSpyResults(done));

express.use('/api/pets', helper.spy(function(err, req, res, next) {
Expand Down