]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
Update react@16 and rc-trigger
authorWei Zhu <yesmeck@gmail.com>
Thu, 2 Nov 2017 04:16:38 +0000 (12:16 +0800)
committerWei Zhu <yesmeck@gmail.com>
Thu, 2 Nov 2017 04:16:38 +0000 (12:16 +0800)
package.json
tests/TimePicker.spec.jsx

index 50a4a6b99de19e9c66791d60cf723754d3e0fea4..f540f33a44fc53f2bff74b5a58c5a25300cb5a15 100644 (file)
@@ -48,8 +48,8 @@
     "coverage": "rc-test run coverage"
   },
   "devDependencies": {
-    "core-js": "^2.5.1",
     "async": "~0.9.0",
+    "core-js": "^2.5.1",
     "expect.js": "~0.3.1",
     "pre-commit": "1.x",
     "rc-test": "^6.0.1",
@@ -66,6 +66,6 @@
     "classnames": "2.x",
     "moment": "2.x",
     "prop-types": "^15.5.8",
-    "rc-trigger": "1.x"
+    "rc-trigger": "^2.2.0"
   }
 }
index d698e48ab17b610eeb3fe12491cc9df8ff977526..83f506ec024afb711418807099c0369d952938ce 100644 (file)
@@ -92,7 +92,7 @@ describe('TimePicker', () => {
         setTimeout(next, 100);
       }, (next) => {
         expect(TestUtils.scryRenderedDOMComponentsWithClass(picker,
-          'rc-time-picker-panel-inner')[0]).not.to.be.ok();
+          'rc-time-picker-panel-inner')[0]).to.be.ok();
         expect(picker.state.open).to.be(true);
         if (document.querySelectorAll) {
           expect(document.querySelectorAll('.rc-time-picker').length).not.to.be(0);