(e)
| 388 | }; |
| 389 | |
| 390 | const handleCellMouseOver = (e) => { |
| 391 | if (!gameIsLive) return; |
| 392 | |
| 393 | const cell = e.target; |
| 394 | const [rowIndex, colIndex] = getCellLocation(cell); |
| 395 | |
| 396 | const topCell = topCells[colIndex]; |
| 397 | |
| 398 | if (greenIsNext) { |
| 399 | topCell.classList.add("green"); |
| 400 | } else { |
| 401 | topCell.classList.add("red"); |
| 402 | } |
| 403 | }; |
| 404 | |
| 405 | const handleCellMouseOut = (e) => { |
| 406 | const cell = e.target; |
nothing calls this directly
no test coverage detected