From aaf877d58804bb201e54a7b29a1642a09502b29d Mon Sep 17 00:00:00 2001 From: Ferdinand Salis-Samaden Date: Tue, 13 Oct 2015 10:32:40 +0200 Subject: [PATCH] Update react-redux dependency --- package.json | 10 ++++++---- src/__tests__/createConnector-test.js | 8 +++----- src/__tests__/jsdom.js | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index dd88907..269bec2 100644 --- a/package.json +++ b/package.json @@ -33,17 +33,19 @@ "eslint": "^0.24.0", "eslint-config-airbnb": "0.0.6", "eslint-plugin-react": "^2.6.4", + "fbjs": "0.3.2", "jsdom": "^5.6.0", "mocha": "^2.2.5", "mocha-jsdom": "^1.0.0", - "react": "^0.13.3", - "redux": "^1.0.0-rc", - "rx": "^2.5.3", + "react": "^0.14.0", + "react-addons-test-utils": "0.14.0", + "redux": "^3.0.3", + "rx": "^4.0.6", "sinon": "^1.15.4" }, "dependencies": { "flux-standard-action": "^0.6.0", - "react-redux": "^0.2.2", + "react-redux": "^4.0.0", "react-rx-component": "^0.5.0" } } diff --git a/src/__tests__/createConnector-test.js b/src/__tests__/createConnector-test.js index c6f645b..ad3080e 100644 --- a/src/__tests__/createConnector-test.js +++ b/src/__tests__/createConnector-test.js @@ -5,10 +5,10 @@ import { Provider } from 'react-redux'; import { Observable } from 'rx'; import { funcSubject } from 'react-rx-component'; import jsdom from './jsdom'; -import React from 'react/addons'; +import React from 'react'; +import TestUtils from 'react-addons-test-utils'; const { combineLatest } = Observable; -const { TestUtils } = React.addons; const actionCreators = { addTodo(text) { @@ -48,9 +48,7 @@ describe('createConnector()', () => { const tree = TestUtils.renderIntoDocument( - {() => ( - - )} + ); diff --git a/src/__tests__/jsdom.js b/src/__tests__/jsdom.js index 0083824..8fe7d5b 100644 --- a/src/__tests__/jsdom.js +++ b/src/__tests__/jsdom.js @@ -1,4 +1,4 @@ -import ExecutionEnvironment from 'react/lib/ExecutionEnvironment'; +import ExecutionEnvironment from 'fbjs/lib/ExecutionEnvironment'; import jsdom from 'mocha-jsdom'; export default function jsdomReact() {