File tree 3 files changed +8
-1
lines changed 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,11 @@ before_install:
42
42
- |
43
43
# mocha for testing
44
44
# - use 2.x for Node.js < 0.10
45
+ # - use 3.x for Node.js < 4
45
46
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
46
47
npm install --save-dev mocha@2.5.3
48
+ elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then
49
+ npm install --save-dev supertest@3.5.3
47
50
fi
48
51
- |
49
52
# supertest for testing
Original file line number Diff line number Diff line change @@ -42,12 +42,16 @@ install:
42
42
- ps : |
43
43
# mocha for testing
44
44
# - use 2.x for Node.js < 0.10
45
+ # - use 3.x for Node.js < 4
45
46
if ([int]$env:nodejs_version.split(".")[0] -eq 0 -and [int]$env:nodejs_version.split(".")[1] -lt 10) {
46
47
npm install --silent --save-dev mocha@2.5.3
48
+ } elseif ([int]$env:nodejs_version.split(".")[0] -lt 4) {
49
+ npm install --silent --save-dev mocha@3.5.3
47
50
}
48
51
- ps : |
49
52
# mocha for testing
50
53
# - use 1.1.0 for Node.js < 0.10
54
+ # - use 3.x for Node.js < 4
51
55
if ([int]$env:nodejs_version.split(".")[0] -eq 0 -and [int]$env:nodejs_version.split(".")[1] -lt 10) {
52
56
npm install --silent --save-dev supertest@1.1.0
53
57
}
Original file line number Diff line number Diff line change 19
19
"eslint" : " 5.16.0" ,
20
20
"eslint-plugin-markdown" : " 1.0.0" ,
21
21
"istanbul" : " 0.4.5" ,
22
- "mocha" : " 3.5.3 " ,
22
+ "mocha" : " 4.1.0 " ,
23
23
"supertest" : " 2.0.0"
24
24
},
25
25
"files" : [
You can’t perform that action at this time.
0 commit comments