Method
addData
(isSpecial: boolean = false)
Source from the content-addressed store, hash-verified
| 736 | } |
| 737 | |
| 738 | addData(isSpecial: boolean = false) { |
| 739 | const nextIndex = ++this.dataIndex; |
| 740 | let copiedData = this.data.slice(); |
| 741 | copiedData.push( |
| 742 | new TestData( |
| 743 | `topping_${nextIndex}`, |
| 744 | `cheese_${nextIndex}`, |
| 745 | `base_${nextIndex}`, |
| 746 | [], |
| 747 | isSpecial, |
| 748 | ), |
| 749 | ); |
| 750 | |
| 751 | this.data = copiedData; |
| 752 | } |
| 753 | } |
| 754 | |
| 755 | function getNodes(treeElement: Element): HTMLElement[] { |
Tested by
no test coverage detected