build: mocha@4.1.0

This commit is contained in:
Douglas Christopher Wilson
2019-07-17 19:44:53 -04:00
parent e3ff991be9
commit fc6d3eadac
3 changed files with 8 additions and 1 deletions
+3
View File
@@ -42,8 +42,11 @@ before_install:
- |
# mocha for testing
# - use 2.x for Node.js < 0.10
# - use 3.x for Node.js < 4
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
npm install --save-dev mocha@2.5.3
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then
npm install --save-dev mocha@3.5.3
fi
- |
# supertest for testing
+4
View File
@@ -42,12 +42,16 @@ install:
- ps: |
# mocha for testing
# - use 2.x for Node.js < 0.10
# - use 3.x for Node.js < 4
if ([int]$env:nodejs_version.split(".")[0] -eq 0 -and [int]$env:nodejs_version.split(".")[1] -lt 10) {
npm install --silent --save-dev mocha@2.5.3
} elseif ([int]$env:nodejs_version.split(".")[0] -lt 4) {
npm install --silent --save-dev mocha@3.5.3
}
- ps: |
# mocha for testing
# - use 1.1.0 for Node.js < 0.10
# - use 3.x for Node.js < 4
if ([int]$env:nodejs_version.split(".")[0] -eq 0 -and [int]$env:nodejs_version.split(".")[1] -lt 10) {
npm install --silent --save-dev supertest@1.1.0
}
+1 -1
View File
@@ -19,7 +19,7 @@
"eslint": "5.16.0",
"eslint-plugin-markdown": "1.0.0",
"istanbul": "0.4.5",
"mocha": "3.5.3",
"mocha": "4.1.0",
"supertest": "2.0.0"
},
"files": [