Skip to content

Commit

Permalink
Configure travis to use npm@3 and node@{0.12, 4, 5}
Browse files Browse the repository at this point in the history
This remove the unused dependency on jsdom (enzyme's `mount`), which requires node@>=4.
  • Loading branch information
motiz88 committed Apr 13, 2016
1 parent f9cd645 commit 5c63238
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: node_js
before_install: npm install -g npm@3
script: travis_retry npm test
node_js:
- '0.12'
- '4'
- '5'
sudo: false
4 changes: 0 additions & 4 deletions __tests__/Sparklines.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import ReactDOM from 'react-dom';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { Sparklines } from '../src/Sparklines';
import jsdom from 'jsdom'

global.document = jsdom.jsdom('<!doctype html><html><body></body></html>');
global.window = document.parentWindow;

describe('Sparklines', () => {
it('does not throw without any parameters', () => {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
"babel-runtime": "^6.6.1",
"chai": "^3.5.0",
"enzyme": "^2.1.0",
"jsdom": "^8.1.0",
"mocha": "^2.4.5",
"react-addons-test-utils": "^0.14.7",
"react": "^0.14.7",
"react-dom": "^0.14.7",
"webpack": "^2.1.0-beta.4",
"webpack-dev-server": "^2.0.0-beta"
},
Expand Down

0 comments on commit 5c63238

Please sign in to comment.