From a8808c45ac4bab0114bf354d063d8bd5d69f6c46 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 12 Apr 2017 20:49:02 +0800 Subject: [PATCH] react-addons-test-utils => react-dom/test-utils --- components/grid/__tests__/index.test.js | 2 +- components/icon/__tests__/index.test.js | 2 +- components/popover/__tests__/index.test.js | 2 +- package.json | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/grid/__tests__/index.test.js b/components/grid/__tests__/index.test.js index 8a0aadbc7b..64c7af5bce 100644 --- a/components/grid/__tests__/index.test.js +++ b/components/grid/__tests__/index.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import TestUtils from 'react-addons-test-utils'; +import TestUtils from 'react-dom/test-utils'; import { Col, Row } from '..'; describe('Grid', () => { diff --git a/components/icon/__tests__/index.test.js b/components/icon/__tests__/index.test.js index 6c074c653c..28e4e789b9 100644 --- a/components/icon/__tests__/index.test.js +++ b/components/icon/__tests__/index.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import TestUtils from 'react-addons-test-utils'; +import TestUtils from 'react-dom/test-utils'; import { wrap } from 'react-stateless-wrapper'; import AntIcon from '..'; diff --git a/components/popover/__tests__/index.test.js b/components/popover/__tests__/index.test.js index ba816e5a55..2cb61217b6 100644 --- a/components/popover/__tests__/index.test.js +++ b/components/popover/__tests__/index.test.js @@ -1,5 +1,5 @@ import React from 'react'; -import TestUtils from 'react-addons-test-utils'; +import TestUtils from 'react-dom/test-utils'; import Popover from '..'; describe('Popover', () => { diff --git a/package.json b/package.json index cca3e12628..7df11353bb 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,6 @@ "rc-scroll-anim": "^1.0.3", "rc-tween-one": "^1.1.2", "react": "^15.0.0", - "react-addons-test-utils": "^15.0.0", "react-color-standalone": "^2.4.2-1", "react-copy-to-clipboard": "^4.0.1", "react-document-title": "^2.0.1",