(amount = 1)
| 2198 | } |
| 2199 | |
| 2200 | addData(amount = 1) { |
| 2201 | let copiedData = this.data.slice(); |
| 2202 | |
| 2203 | for (let i = 0; i < amount; i++) { |
| 2204 | const nextIndex = copiedData.length + 1; |
| 2205 | |
| 2206 | copiedData.push({ |
| 2207 | a: `a_${nextIndex}`, |
| 2208 | b: `b_${nextIndex}`, |
| 2209 | c: `c_${nextIndex}`, |
| 2210 | }); |
| 2211 | } |
| 2212 | |
| 2213 | this.data = copiedData; |
| 2214 | } |
| 2215 | } |
| 2216 | |
| 2217 | class BooleanDataSource extends DataSource<boolean> { |
no test coverage detected