Skip to content

Commit

Permalink
Merge pull request #48 from motiz88/fix-travis
Browse files Browse the repository at this point in the history
Fix Travis build
  • Loading branch information
borisyankov committed May 5, 2016
2 parents 97c9dfd + f6fd34f commit c49e893
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.2.0",
"jsdom": "^8.3.1",
"mocha": "^2.4.5",
"react": "^15.0.1",
"react-addons-test-utils": "^15.0.1",
"react-dom": "^15.0.1",
"webpack": "^2.1.0-beta.4",
"webpack-dev-server": "^2.0.0-beta"
},
Expand Down

0 comments on commit c49e893

Please sign in to comment.