Skip to content

Commit 257df63

Browse files
committed
Update dataScaleProfile.test.ts
1 parent 01b9b6a commit 257df63

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/ai/dataScaleProfile.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,13 @@ describe("scale-aware suggestCharts integration", () => {
494494
})
495495

496496
it("buildProps returns runnable props (value + label + optional comparison) — no removed slot props", () => {
497-
const results = suggestCharts(monthlyTrend, { maxResults: 10 })
497+
// Pin the buildProps contract, not top-N ranking. Catalog growth can
498+
// push BigNumber out of maxResults:10 even when it still fits (score
499+
// ~1.2 for a 4-row series). Allow-list keeps the assertion stable.
500+
const results = suggestCharts(monthlyTrend, {
501+
maxResults: 5,
502+
allow: ["BigNumber"],
503+
})
498504
const big = results.find((r) => r.component === "BigNumber")
499505
expect(big).toBeDefined()
500506
expect(big?.props).toMatchObject({

0 commit comments

Comments
 (0)