(offset: number, id: string | undefined)
| 4 | const tree = parseJSON('{ "array": [12345678987654321, 0.1234567891111111111] }'); |
| 5 | |
| 6 | const expectOffset = (offset: number, id: string | undefined) => { |
| 7 | const r = tree.findNodeAtOffset(offset); |
| 8 | expect(r?.node?.id).toEqual(id); |
| 9 | }; |
| 10 | |
| 11 | test("simple", () => { |
| 12 | expectOffset(6, "$/array"); |
no test coverage detected