mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Spreadsheet: Make Range(s).forEach() return Position objects
This commit is contained in:
parent
d047f26a74
commit
4eb2c70a03
3 changed files with 31 additions and 32 deletions
|
@ -118,7 +118,7 @@ describe("Range", () => {
|
|||
for (const row of [0, 1, 2]) sheet.setCell(col, row, Math.pow(i++, 2));
|
||||
|
||||
sheet.focusCell("A", 0);
|
||||
expect(R`A0:A2`.at(2)).toEqual("A2");
|
||||
expect(Ranges.from(R`A0:A2`, R`B0:B2`).at(5)).toEqual("B2");
|
||||
expect(R`A0:A2`.at(2).name).toEqual("A2");
|
||||
expect(Ranges.from(R`A0:A2`, R`B0:B2`).at(5).name).toEqual("B2");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue