Skip to content

Commit 46d2685

Browse files
authored
Add support and testing for Sinon ^2.1.0 (#89)
This uses Travis to test against the different versions supported. Closes #74. Closes #73.
1 parent 837d4c9 commit 46d2685

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

‎.travis.yml‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
language: node_js
22
node_js:
33
- "0.10"
4-
- iojs
4+
- stable
5+
env:
6+
# Can't figure out how to DRY this up: http://stackoverflow.com/q/22397300/3191
7+
- CHAI_VERSION=^1.9.2 SINON_VERSION=^1.4.0
8+
- CHAI_VERSION=^2.0.0 SINON_VERSION=^1.4.0
9+
- CHAI_VERSION=^3.0.0 SINON_VERSION=^1.4.0
10+
- CHAI_VERSION=^1.9.2 SINON_VERSION=^2.1.0
11+
- CHAI_VERSION=^2.0.0 SINON_VERSION=^2.1.0
12+
- CHAI_VERSION=^3.0.0 SINON_VERSION=^2.1.0
513
script:
6-
npm run lint && npm test
14+
npm run lint && npm run test-travis

‎package.json‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@
2222
"lib"
2323
],
2424
"scripts": {
25-
"test": "npm run test-chai-1-9-2 && npm run test-chai-2-3-0 && npm run test-chai-3-0-0",
26-
"test-chai-1-9-2": "npm install chai@1.9.2 && mocha",
27-
"test-chai-2-3-0": "npm install chai@2.3.0 && mocha",
28-
"test-chai-3-0-0": "npm install chai@3.0.0 && mocha",
25+
"test": "mocha",
26+
"test-travis": "npm install chai@$CHAI_VERSION && npm install sinon@$SINON_VERSION && npm test",
2927
"lint": "jshint ./lib",
3028
"cover": "istanbul cover node_modules/mocha/bin/_mocha && opener ./coverage/lcov-report/lib/sinon-chai.js.html"
3129
},
3230
"peerDependencies": {
3331
"chai": ">=1.9.2 <4",
34-
"sinon": ">=1.4.0 <2"
32+
"sinon": "^1.4.0 || ^2.1.0"
3533
},
3634
"devDependencies": {
3735
"chai": "^3.0.0",
@@ -40,6 +38,6 @@
4038
"jshint": "^2.5.6",
4139
"mocha": "^1.21.4",
4240
"opener": "^1.4.0",
43-
"sinon": "^1.10.3"
41+
"sinon": "^2.1.0"
4442
}
4543
}

0 commit comments

Comments
 (0)