Conver with test changes in #2755 pull request (#2766)

This commit is contained in:
Alexandr Garbuzov 2023-06-05 13:11:55 +03:00 committed by GitHub
parent 98b047751e
commit 1e0183d202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.",
);
});
});