Skip to content

Commit 5c63238

Browse files
committed
Configure travis to use npm@3 and node@{0.12, 4, 5}
This remove the unused dependency on jsdom (enzyme's `mount`), which requires node@>=4.
1 parent f9cd645 commit 5c63238

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
language: node_js
2+
before_install: npm install -g npm@3
23
script: travis_retry npm test
34
node_js:
45
- '0.12'
6+
- '4'
7+
- '5'
58
sudo: false

__tests__/Sparklines.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import ReactDOM from 'react-dom';
33
import { shallow } from 'enzyme';
44
import { expect } from 'chai';
55
import { Sparklines } from '../src/Sparklines';
6-
import jsdom from 'jsdom'
7-
8-
global.document = jsdom.jsdom('<!doctype html><html><body></body></html>');
9-
global.window = document.parentWindow;
106

117
describe('Sparklines', () => {
128
it('does not throw without any parameters', () => {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@
4242
"babel-runtime": "^6.6.1",
4343
"chai": "^3.5.0",
4444
"enzyme": "^2.1.0",
45-
"jsdom": "^8.1.0",
4645
"mocha": "^2.4.5",
4746
"react-addons-test-utils": "^0.14.7",
47+
"react": "^0.14.7",
48+
"react-dom": "^0.14.7",
4849
"webpack": "^2.1.0-beta.4",
4950
"webpack-dev-server": "^2.0.0-beta"
5051
},

0 commit comments

Comments
 (0)