Skip to content

Commit a4beb2c

Browse files
committed
build: mocha@4.1.0
1 parent e3ff991 commit a4beb2c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ before_install:
4242
- |
4343
# mocha for testing
4444
# - use 2.x for Node.js < 0.10
45+
# - use 3.x for Node.js < 4
4546
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
4647
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
4750
fi
4851
- |
4952
# supertest for testing

appveyor.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,16 @@ install:
4242
- ps: |
4343
# mocha for testing
4444
# - use 2.x for Node.js < 0.10
45+
# - use 3.x for Node.js < 4
4546
if ([int]$env:nodejs_version.split(".")[0] -eq 0 -and [int]$env:nodejs_version.split(".")[1] -lt 10) {
4647
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
4750
}
4851
- ps: |
4952
# mocha for testing
5053
# - use 1.1.0 for Node.js < 0.10
54+
# - use 3.x for Node.js < 4
5155
if ([int]$env:nodejs_version.split(".")[0] -eq 0 -and [int]$env:nodejs_version.split(".")[1] -lt 10) {
5256
npm install --silent --save-dev supertest@1.1.0
5357
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"eslint": "5.16.0",
2020
"eslint-plugin-markdown": "1.0.0",
2121
"istanbul": "0.4.5",
22-
"mocha": "3.5.3",
22+
"mocha": "4.1.0",
2323
"supertest": "2.0.0"
2424
},
2525
"files": [

0 commit comments

Comments
 (0)