()
| 511 | } |
| 512 | |
| 513 | function mutateData() { |
| 514 | // Swap first and second data in data array |
| 515 | const copiedData = component.dataSource.data.slice(); |
| 516 | const temp = copiedData[0]; |
| 517 | copiedData[0] = copiedData[1]; |
| 518 | copiedData[1] = temp; |
| 519 | |
| 520 | // Remove the third element |
| 521 | copiedData.splice(2, 1); |
| 522 | |
| 523 | // Add new data |
| 524 | component.dataSource.data = copiedData; |
| 525 | component.dataSource.addData(); |
| 526 | } |
| 527 | |
| 528 | it('should add/remove/move nodes with reference-based trackBy', () => { |
| 529 | createTrackByTestComponent('reference'); |
no test coverage detected
searching dependent graphs…