feat: expand advanced widget experiences

This commit is contained in:
Thomas Camlong authored and ajnart committed 2026-08-14 11:07:09 +02:00
1 parent 9437d211c8
commit c099a8eef6
119 files changed
+3624 -844

No files matched your search

@@ -10,11 +10,25 @@ describe("stock summary", () => {
it("does not divide by a zero previous close", () => {
expect(getStockSummary([0, 5], 0)).toMatchObject({
currentPrice: 5,
previousClose: 0,
change: 5,
changePercentage: null,
minimum: 0,
maximum: 5,
graphValues: [50, 55],
});
});
it("derives every advanced metric from the owned price series", () => {
expect(getStockSummary([90, 110, 105], 100)).toMatchObject({
currentPrice: 105,
previousClose: 100,
change: 5,
changePercentage: 5,
minimum: 90,
maximum: 110,
});
});
});
describe("stock layout", () => {