diff --git a/.travis.yml b/.travis.yml index a004ee2a..fa722204 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,6 +45,12 @@ before_install: 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 fi + - | + # supertest for testing + # - use 1.1.0 for Node.js < 0.10 + if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then + npm install --save-dev supertest@1.1.0 + fi # Update Node.js modules - | # Prune and rebuild node_modules diff --git a/appveyor.yml b/appveyor.yml index 5b92b4aa..e634ca95 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -45,6 +45,12 @@ install: 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 } + - ps: | + # mocha for testing + # - use 1.1.0 for Node.js < 0.10 + 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 + } # Update Node.js modules - ps: | # Prune & rebuild node_modules diff --git a/package.json b/package.json index 9f0f9b6d..1d1ffad3 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "eslint-plugin-markdown": "1.0.0", "istanbul": "0.4.5", "mocha": "3.5.3", - "supertest": "1.1.0" + "supertest": "2.0.0" }, "files": [ "public/",