From: afc163 Date: Tue, 21 Feb 2017 08:34:19 +0000 (+0800) Subject: fix test case X-Git-Tag: 2.3.0~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=19b96283c09e678b8b7ea5c60569996a0bab5935;p=github%2Ffretlink%2Ftime-picker.git fix test case --- diff --git a/package.json b/package.json index 7bcda79..d4c89a1 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "jquery": "1.x", "pre-commit": "1.x", "rc-tools": "5.x", - "rc-util": "^4.0.0", + "rc-util": "^4.0.2", "react": "15.x", "react-addons-test-utils": "15.x", "react-dom": "15.x" diff --git a/tests/Header.spec.jsx b/tests/Header.spec.jsx index d5e570d..682852d 100644 --- a/tests/Header.spec.jsx +++ b/tests/Header.spec.jsx @@ -6,7 +6,7 @@ import TestUtils from 'react-addons-test-utils'; const Simulate = TestUtils.Simulate; import expect from 'expect.js'; import async from 'async'; -import { KeyCode } from 'rc-util'; +import KeyCode from 'rc-util/lib/KeyCode'; import moment from 'moment'; describe('Header', () => {