Skip to content

Commit f464e40

Browse files
qwerty541devantler
authored andcommitted
Cover with test changes in anuraghazra#2662 pull request (anuraghazra#2673)
1 parent 521c82a commit f464e40

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/renderWakatimeCard.test.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,19 @@ describe("Test Render Wakatime Card", () => {
6767
"No coding activity this week",
6868
);
6969
});
70+
71+
it('should show "no coding activity this week" message when using compact layout and there has not been activity', () => {
72+
document.body.innerHTML = renderWakatimeCard(
73+
{
74+
...wakaTimeData.data,
75+
languages: undefined,
76+
},
77+
{
78+
layout: "compact",
79+
},
80+
);
81+
expect(document.querySelector(".stat").textContent).toBe(
82+
"No coding activity this week",
83+
);
84+
});
7085
});

0 commit comments

Comments
 (0)