(attributes: Record<string, string>)
| 7 | |
| 8 | describe("getItemIndex", () => { |
| 9 | function createElement(attributes: Record<string, string>) { |
| 10 | const element = document.createElement("div"); |
| 11 | for (const [name, value] of Object.entries(attributes)) { |
| 12 | element.setAttribute(name, value); |
| 13 | } |
| 14 | return element; |
| 15 | } |
| 16 | |
| 17 | test("should read the index set by List", () => { |
| 18 | expect( |
no outgoing calls
no test coverage detected