diff --git a/.travis.yml b/.travis.yml index fa722204..2515b18f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 supertest@3.5.3 fi - | # supertest for testing diff --git a/appveyor.yml b/appveyor.yml index e634ca95..c3f50988 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 } diff --git a/package.json b/package.json index 1d1ffad3..71a1d404 100644 --- a/package.json +++ b/package.json @@ -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": [