mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-10-03 09:13:29 +00:00
1 parent
a340900e8a
commit
0c2fe4e07b
1 file changed
+15
@@ -67,4 +67,19 @@ describe("Test Render Wakatime Card", () => {
|
|||||||
"No coding activity this week",
|
"No coding activity this week",
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should show "no coding activity this week" message when using compact layout and there has not been activity', () => {
|
||||||
|
document.body.innerHTML = renderWakatimeCard(
|
||||||
|
{
|
||||||
|
...wakaTimeData.data,
|
||||||
|
languages: undefined,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
layout: "compact",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
expect(document.querySelector(".stat").textContent).toBe(
|
||||||
|
"No coding activity this week",
|
||||||
|
);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user