File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,15 @@ before_install:
4949 elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then
5050 npm install --save-dev mocha@3.5.3
5151 fi
52+ - |
53+ # supertest for http calls
54+ # - use 1.1.0 for Node.js < 0.10
55+ # - use 2.0.0 for Node.js < 4
56+ if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
57+ npm install --save-dev supertest@1.1.0
58+ elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then
59+ npm install --save-dev supertest@2.0.0
60+ fi
5261 # Update Node.js modules
5362 - |
5463 # Prune and rebuild node_modules
Original file line number Diff line number Diff line change 2828 "eslint-plugin-standard" : " 4.0.0" ,
2929 "istanbul" : " 0.4.5" ,
3030 "mocha" : " 5.2.0" ,
31- "supertest" : " 1.1 .0"
31+ "supertest" : " 3.3 .0"
3232 },
3333 "files" : [
3434 " LICENSE" ,
You can’t perform that action at this time.
0 commit comments