(contentState, entityKey)
| 11 | }; |
| 12 | |
| 13 | const getEntityFromContentState = (contentState, entityKey) => { |
| 14 | // compatibility shim for draft-js@0.10 entity changes |
| 15 | if (contentState.getEntity) { |
| 16 | return contentState.getEntity(entityKey); |
| 17 | } |
| 18 | |
| 19 | return Entity.get(entityKey); |
| 20 | }; |
| 21 | |
| 22 | describe('convertFromHTML', () => { |
| 23 | const toContentState = (html, options) => { |
no outgoing calls
no test coverage detected
searching dependent graphs…