Cover with test changes in #2662 pull request (#2673)

This commit is contained in:
Alexandr Garbuzov 2023-05-06 10:43:37 +03:00 committed by GitHub
parent a340900e8a
commit 0c2fe4e07b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,4 +67,19 @@ describe("Test Render Wakatime Card", () => {
"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",
);
});
});