Skip to content

Commit 4cf1082

Browse files
committed
Update QuadrantChart.test.tsx
1 parent 256a86d commit 4cf1082

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/charts/xy/QuadrantChart.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ describe("QuadrantChart", () => {
8080
/>
8181
)
8282

83-
expect(container.querySelector("canvas")).toBeTruthy()
8483
expect(container.querySelector(".semiotic-chart-error")).toBeFalsy()
84+
expect(container.textContent).toContain("2 elements")
8585
})
8686

8787
it("accepts partial quadrant overrides", () => {
@@ -100,8 +100,8 @@ describe("QuadrantChart", () => {
100100
/>
101101
)
102102

103-
expect(container.querySelector("canvas")).toBeTruthy()
104103
expect(container.querySelector(".semiotic-chart-error")).toBeFalsy()
104+
expect(container.textContent).toContain("2 elements")
105105
})
106106

107107
it("renders without data (push API mode)", () => {

0 commit comments

Comments
 (0)