mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 22:15:15 +00:00
parent
98b047751e
commit
1e0183d202
1 changed files with 7 additions and 0 deletions
|
|
@ -817,4 +817,11 @@ describe("Test renderTopLanguages", () => {
|
|||
options.langs_count,
|
||||
);
|
||||
});
|
||||
|
||||
it('should show "No languages data." message instead of empty card when nothing to show', () => {
|
||||
document.body.innerHTML = renderTopLanguages({});
|
||||
expect(document.querySelector(".stat").textContent).toBe(
|
||||
"No languages data.",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue