Skip to content

Commit

Permalink
Add support for sinon v4
Browse files Browse the repository at this point in the history
This includes a hack to avoid the broken npm v5.3.0 when installing on Travis; otherwise lolex and nise don't get installed, for some reason.
  • Loading branch information
Yeti-or authored and domenic committed Sep 28, 2017
1 parent e741950 commit 3503cb7
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 36 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ env:
- CHAI_VERSION=^2.0.0 SINON_VERSION=^3.0.0
- CHAI_VERSION=^3.0.0 SINON_VERSION=^3.0.0
- CHAI_VERSION=^4.0.0 SINON_VERSION=^3.0.0
- CHAI_VERSION=^1.9.2 SINON_VERSION=^4.0.0
- CHAI_VERSION=^2.0.0 SINON_VERSION=^4.0.0
- CHAI_VERSION=^3.0.0 SINON_VERSION=^4.0.0
- CHAI_VERSION=^4.0.0 SINON_VERSION=^4.0.0
script:
- test $TRAVIS_NODE_VERSION == "0.10" || npm run lint
- npm run test-travis
before_install:
- if [ `npm -v` = "5.3.0" ]; then
npm install -g npm@^5.4.2;
npm -v;
fi
76 changes: 43 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,14 @@
},
"peerDependencies": {
"chai": ">=1.9.2 <5",
"sinon": "^1.4.0 || ^2.1.0 || ^3.0.0"
"sinon": "^1.4.0 || ^2.1.0 || ^3.0.0 || ^4.0.0"
},
"devDependencies": {
"chai": "^4.1.0",
"eslint": "^3.19.0",
"istanbul": "~0.4.5",
"lolex": "^2.1.2",
"mocha": "^3.4.2",
"opener": "^1.4.3",
"sinon": "^3.0.0"
"sinon": "^4.0.0"
}
}

0 comments on commit 3503cb7

Please sign in to comment.