mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-26 19:59:57 +00:00
fix: word-wrap bug (#1378)
* Fixed word-wrap bug
* ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#1382)
* Revert "ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#1382)"
This reverts commit 2723f00cb8.
* chore: remove action cache
* chore: minor change
Co-authored-by: Markus Tyrkkö <markus.tyrkko@nitor.com>
Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com>
Co-authored-by: Anurag <hazru.anurag@gmail.com>
This commit is contained in:
@@ -51,6 +51,17 @@ describe("Test renderRepoCard", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("should trim header", () => {
|
||||
document.body.innerHTML = renderRepoCard({
|
||||
...data_repo.repository,
|
||||
name: "some-really-long-repo-name-for-test-purposes",
|
||||
});
|
||||
|
||||
expect(document.getElementsByClassName("header")[0].textContent).toBe(
|
||||
"some-really-long-repo-name-for-test...",
|
||||
);
|
||||
});
|
||||
|
||||
it("should trim description", () => {
|
||||
document.body.innerHTML = renderRepoCard({
|
||||
...data_repo.repository,
|
||||
|
||||
Reference in New Issue
Block a user