Skip to content

Commit c49e893

Browse files
committed
Merge pull request #48 from motiz88/fix-travis
Fix Travis build
2 parents 97c9dfd + f6fd34f commit c49e893

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.travis.yml

+3
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

-4
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

+2-1
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.2.0",
45-
"jsdom": "^8.3.1",
4645
"mocha": "^2.4.5",
46+
"react": "^15.0.1",
4747
"react-addons-test-utils": "^15.0.1",
48+
"react-dom": "^15.0.1",
4849
"webpack": "^2.1.0-beta.4",
4950
"webpack-dev-server": "^2.0.0-beta"
5051
},

0 commit comments

Comments
 (0)