Skip to content

Commit af832ab

Browse files
committed
Merge branch 'fix-travis' into graphical-tests
# Conflicts: # package.json
2 parents a530df1 + 5c63238 commit af832ab

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
@@ -44,11 +44,12 @@
4444
"chai": "^3.5.0",
4545
"enzyme": "^2.1.0",
4646
"hiff": "^0.3.0",
47-
"jsdom": "^8.1.0",
4847
"line-by-line": "^0.1.4",
4948
"mocha": "^2.4.5",
5049
"react-addons-test-utils": "^0.14.7",
50+
"react": "^0.14.7",
5151
"react-element-to-jsx-string": "=2.5.0",
52+
"react-dom": "^0.14.7",
5253
"replaceall": "^0.1.6",
5354
"webpack": "^2.1.0-beta.4",
5455
"webpack-dev-server": "^2.0.0-beta"

0 commit comments

Comments
 (0)