Skip to content

Commit

Permalink
Backport node 12 fixes.
Browse files Browse the repository at this point in the history
Fix test suite with node.js 12

(cherry picked from commit b03278f)

Drop node.js 11 support, add 12

(cherry picked from commit 7796370)

prettier --write test/unexpectedMitm.js

(cherry picked from commit dde61b8)
  • Loading branch information
papandreou authored and alexjeffburke committed Jul 7, 2019
1 parent daa7265 commit 1c8ccfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -3,6 +3,6 @@ node_js:
- '6'
- '8'
- '10'
- '11'
- '12'
script: 'npm run ci'
after_success: '<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js'
5 changes: 4 additions & 1 deletion test/unexpectedMitm.js
Expand Up @@ -2063,7 +2063,10 @@ describe('unexpectedMitm', () => {
} else {
expectedError = new Error(message);
}
if (semver.satisfies(nodeJsVersion, '>=2.0.0')) {
if (
semver.satisfies(nodeJsVersion, '>=2.0.0') &&
semver.satisfies(nodeJsVersion, '<12')
) {
expectedError.message +=
' www.icwqjecoiqwjecoiwqjecoiwqjceoiwq.com:80';
expectedError.host = 'www.icwqjecoiqwjecoiwqjecoiwqjceoiwq.com';
Expand Down

0 comments on commit 1c8ccfd

Please sign in to comment.