(id, topic, additionalProps = {})
| 694 | }); |
| 695 | |
| 696 | function create_mock_node(id, topic, additionalProps = {}) { |
| 697 | return { |
| 698 | id: id, |
| 699 | topic: topic, |
| 700 | children: [], |
| 701 | isroot: false, |
| 702 | parent: null, |
| 703 | direction: 1, |
| 704 | expanded: true, |
| 705 | data: {}, |
| 706 | ...additionalProps, |
| 707 | }; |
| 708 | } |
| 709 | |
| 710 | function create_fake_mind(options = {}) { |
| 711 | const defaultOptions = { container: 'container' }; |