Comments (3)
https://travis-ci.org/react-component/tree-select/builds/235187244
没问题啊。
from tree-select.
yarn test v0.27.5
$ jest
FAIL tests/Select.multiple.spec.js
● TreeSelect.multiple › remove by backspace key twice when treeCheckable and under controlled
expect(received).toHaveLength(length)
Expected value to have length:
1
Received:
{"complexSelector": {"buildPredicate": [Function buildInstPredicate], "childrenOfNode": [Function childrenOfInst], "findWhereUnwrapped": [Function findWhereUnwrapped]}, "component": null, "length": 0, "node": undefined, "nodes": Array [], "options": {}, "root": {"complexSelector": {"buildPredicate": [Function buildInstPredicate], "childrenOfNode": [Function childrenOfInst], "findWhereUnwrapped": [Function findWhereUnwrapped]}, "component": {"_reactInternalInstance": {"_calledComponentWillUnmount": false, "_compositeType": 0, "_context": {}, "_currentElement": {"$$typeof": Symbol(react.element), "_owner": null, "_store": [Object], "key": null, "props": [Object], "ref": null, "type": [Function WrapperComponent]}, "_debugID": 74, "_hostContainerInfo": {"_ancestorInfo": [Object], "_idCounter": 14, "_namespaceURI": "http://www.w3.org/1999/xhtml", "_node": [Object], "_ownerDocument": [Object], "_tag": "div", "_topLevelWrapper": [Object]}, "_hostParent": null, "_instance": [Circular], "_mountImage": null, "_mountIndex": 0, "_mountOrder": 28, "_pendingCallbacks": null, "_pendingElement": null, "_pendingForceUpdate": false, "_pendingReplaceState": false, "_pendingStateQueue": null, "_renderedComponent": {"_calledComponentWillUnmount": false, "_compositeType": 0, "_context": [Object], "_currentElement": [Object], "_debugID": 75, "_hostContainerInfo": [Object], "_hostParent": null, "_instance": [Object], "_mountImage": null, "_mountIndex": 0, "_mountOrder": 29, "_pendingCallbacks": null, "_pendingElement": null, "_pendingForceUpdate": false, "_pendingReplaceState": false, "_pendingStateQueue": null, "_renderedComponent": [Object], "_renderedNodeType": 1, "_rootNodeID": 0, "_topLevelWrapper": null, "_updateBatchNumber": null, "_warnedAboutRefsInRender": false}, "_renderedNodeType": 1, "_rootNodeID": 0, "_topLevelWrapper": {"_calledComponentWillUnmount": false, "_compositeType": 0, "_context": [Object], "_currentElement": [Object], "_debugID": 0, "_hostContainerInfo": [Object], "_hostParent": null, "_instance": [Object], "_mountImage": null, "_mountIndex": 0, "_mountOrder": 27, "_pendingCallbacks": null, "_pendingElement": null, "_pendingForceUpdate": false, "_pendingReplaceState": false, "_pendingStateQueue": null, "_renderedComponent": [Circular], "_renderedNodeType": 1, "_rootNodeID": 0, "_topLevelWrapper": null, "_updateBatchNumber": null, "_warnedAboutRefsInRender": false}, "_updateBatchNumber": null, "_warnedAboutRefsInRender": false}, "context": {}, "props": {"Component": [Function App], "context": null, "props": {}}, "refs": {}, "state": {"context": null, "mount": true, "props": {}}, "updater": {"enqueueCallback": [Function enqueueCallback], "enqueueCallbackInternal": [Function enqueueCallbackInternal], "enqueueElementInternal": [Function enqueueElementInternal], "enqueueForceUpdate": [Function enqueueForceUpdate], "enqueueReplaceState": [Function enqueueReplaceState], "enqueueSetState": [Function enqueueSetState], "isMounted": [Function isMounted], "validateCallback": [Function validateCallback]}}, "length": 1, "node": {"_reactInternalInstance": {"_calledComponentWillUnmount": false, "_compositeType": 0, "_context": {}, "_currentElement": {"$$typeof": Symbol(react.element), "_owner": [Object], "_store": [Object], "key": null, "props": [Object], "ref": null, "type": [Function App]}, "_debugID": 75, "_hostContainerInfo": {"_ancestorInfo": [Object], "_idCounter": 14, "_namespaceURI": "http://www.w3.org/1999/xhtml", "_node": [Object], "_ownerDocument": [Object], "_tag": "div", "_topLevelWrapper": [Object]}, "_hostParent": null, "_instance": [Circular], "_mountImage": null, "_mountIndex": 0, "_mountOrder": 29, "_pendingCallbacks": null, "_pendingElement": null, "_pendingForceUpdate": false, "_pendingReplaceState": false, "_pendingStateQueue": null, "_renderedComponent": {"_calledComponentWillUnmount": false, "_compositeType": 0, "_context": [Object], "_currentElement": [Object], "_debugID": 76, "_hostContainerInfo": [Object], "_hostParent": null, "_instance": [Object], "_mountImage": null, "_mountIndex": 0, "_mountOrder": 30, "_pendingCallbacks": null, "_pendingElement": null, "_pendingForceUpdate": false, "_pendingReplaceState": false, "_pendingStateQueue": null, "_renderedComponent": [Object], "_renderedNodeType": 1, "_rootNodeID": 0, "_topLevelWrapper": null, "_updateBatchNumber": null, "_warnedAboutRefsInRender": false}, "_renderedNodeType": 1, "_rootNodeID": 0, "_topLevelWrapper": null, "_updateBatchNumber": null, "_warnedAboutRefsInRender": false}, "context": {}, "handleChange": [Function anonymous], "props": {}, "refs": {}, "state": {"value": Array []}, "updater": {"enqueueCallback": [Function enqueueCallback], "enqueueCallbackInternal": [Function enqueueCallbackInternal], "enqueueElementInternal": [Function enqueueElementInternal], "enqueueForceUpdate": [Function enqueueForceUpdate], "enqueueReplaceState": [Function enqueueReplaceState], "enqueueSetState": [Function enqueueSetState], "isMounted": [Function isMounted], "validateCallback": [Function validateCallback]}}, "nodes": [{"_reactInternalInstance": {"_calledComponentWillUnmount": false, "_compositeType": 0, "_context": [Object], "_currentElement": [Object], "_debugID": 75, "_hostContainerInfo": [Object], "_hostParent": null, "_instance": [Circular], "_mountImage": null, "_mountIndex": 0, "_mountOrder": 29, "_pendingCallbacks": null, "_pendingElement": null, "_pendingForceUpdate": false, "_pendingReplaceState": false, "_pendingStateQueue": null, "_renderedComponent": [Object], "_renderedNodeType": 1, "_rootNodeID": 0, "_topLevelWrapper": null, "_updateBatchNumber": null, "_warnedAboutRefsInRender": false}, "context": {}, "handleChange": [Function anonymous], "props": {}, "refs": {}, "state": {"value": Array []}, "updater": {"enqueueCallback": [Function enqueueCallback], "enqueueCallbackInternal": [Function enqueueCallbackInternal], "enqueueElementInternal": [Function enqueueElementInternal], "enqueueForceUpdate": [Function enqueueForceUpdate], "enqueueReplaceState": [Function enqueueReplaceState], "enqueueSetState": [Function enqueueSetState], "isMounted": [Function isMounted], "validateCallback": [Function validateCallback]}}], "options": {}, "root": [Circular]}}
received.length:
0
at Object.<anonymous> (tests/Select.multiple.spec.js:76:20)
at handle (node_modules/worker-farm/lib/child/index.js:44:8)
at process.<anonymous> (node_modules/worker-farm/lib/child/index.js:51:3)
at emitTwo (events.js:106:13)
at process.emit (events.js:191:7)
at process.nextTick (internal/child_process.js:753:12)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
PASS tests/Select.checkable.spec.js
PASS tests/Select.spec.js (5.212s)
Test Suites: 1 failed, 2 passed, 3 total
Tests: 1 failed, 25 passed, 26 total
Snapshots: 7 passed, 7 total
Time: 6.218s
Ran all test suites.
error Command failed with exit code 1.
本机跑跑看看?
from tree-select.
也好的呀。
from tree-select.
Related Issues (20)
- tokenSeparators not work
- Have the dropdown be relative to the parent and not the body when on scrollable modal HOT 1
- undocumented breaking change - ref methods focus & blur missing
- [Feature Request] TreeSelect: Add "labelInAriaLive"-property for better accessibility HOT 1
- 有什么办法能实现给每个选择项增加类名吗
- 下拉框内容 横向超出可视范围怎么办?
- Dropdown not rendering HOT 5
- Problem after updating "react-scripts" to "^5.0.1"
- When the dropdown renders on top, elements are unclickable.
- No Working Examples HOT 1
- index.css not found HOT 3
- index.css not found HOT 1
- screen reader HOT 1
- Screen reader announces 'value' prop instead of 'title' or 'aria-label' prop
- Cache causing issues when changing options dynamically. HOT 1
- DFS这里是否能调整为尾递归
- Getting Legacy Context API in react 18
- [mobile] 怎么不让search input每次都自动focus?
- treeTitleRender 回显时函数中的targetItem中只有value属性,只return targetItem.label时有效,return 拼接数据只能获取到value属性
- example links not working documentation not proper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tree-select.