( props: Partial<Props<any>> = {} )
| 1538 | |
| 1539 | const MockSlowEditor = SlowEditor as any; |
| 1540 | const createEditorElement = ( props: Partial<Props<any>> = {} ) => ( |
| 1541 | <CKEditor |
| 1542 | editor={MockSlowEditor} |
| 1543 | config={{ |
| 1544 | initialData: '1', |
| 1545 | key: 1, |
| 1546 | abc: 123 |
| 1547 | } as any} |
| 1548 | onReady={resolvedEditor => { |
| 1549 | initializerLog.push( { |
| 1550 | status: 'ready', |
| 1551 | id: resolvedEditor.config.key |
| 1552 | } ); |
| 1553 | }} |
| 1554 | onAfterDestroy={destroyedEditor => { |
| 1555 | initializerLog.push( { |
| 1556 | status: 'destroy', |
| 1557 | id: destroyedEditor.config.key |
| 1558 | } ); |
| 1559 | }} |
| 1560 | {...props} |
| 1561 | /> |
| 1562 | ); |
| 1563 | |
| 1564 | const component = render( createEditorElement() ); |
| 1565 |
no outgoing calls
no test coverage detected
searching dependent graphs…