fix: follow-ups of the lot-v018 stack reviews #482
1 changed files with 5 additions and 0 deletions
|
|
@ -86,6 +86,11 @@ describe("reorderRows — subtotals at the bottom (issue #424)", () => {
|
||||||
expect(names(reorderRows(rows, false))).toEqual(["Vide", "z", "A"]);
|
expect(names(reorderRows(rows, false))).toEqual(["Vide", "z", "A"]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("a collapsed sub-group last in its group keeps its subtotal, before the group's own", () => {
|
||||||
|
const rows: Row[] = [sub("A", 0), leaf("z", 1), sub("Vide", 1)];
|
||||||
|
expect(names(reorderRows(rows, false))).toEqual(["z", "Vide", "A"]);
|
||||||
|
});
|
||||||
|
|
||||||
it("the same block, followed by a sibling root: the root closes after its own rows", () => {
|
it("the same block, followed by a sibling root: the root closes after its own rows", () => {
|
||||||
const block: Row[] = [sub("A", 0), sub("Vide", 1), leaf("z", 1)];
|
const block: Row[] = [sub("A", 0), sub("Vide", 1), leaf("z", 1)];
|
||||||
// A root group...
|
// A root group...
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue