( elements: Element[], attribute: string, count: number, startIdx: number, endIdx: number )
| 36 | } |
| 37 | |
| 38 | function assertElements( |
| 39 | elements: Element[], |
| 40 | attribute: string, |
| 41 | count: number, |
| 42 | startIdx: number, |
| 43 | endIdx: number |
| 44 | ) { |
| 45 | expect(elements).toHaveLength(count); |
| 46 | expect(elements[0]).toHaveAttribute(attribute, String(startIdx)); |
| 47 | expect(elements[elements.length - 1]).toHaveAttribute(attribute, String(endIdx)); |
| 48 | } |
| 49 | |
| 50 | function assertIndexes( |
| 51 | cells: Element[], |
no outgoing calls
no test coverage detected