mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-08-11 02:22:46 +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:
co-authored by
Markus Tyrkkö
Oscar Dominguez
Anurag
parent
ded7e8aff8
commit
02e714aeb4
@@ -117,4 +117,11 @@ describe("wrapTextMultiline", () => {
|
||||
);
|
||||
expect(multiLineText).toEqual(["Hello", "world long..."]);
|
||||
});
|
||||
it("should wrap chinese by punctuation", () => {
|
||||
let multiLineText = wrapTextMultiline(
|
||||
"专门为刚开始刷题的同学准备的算法基地,没有最细只有更细,立志用动画将晦涩难懂的算法说的通俗易懂!",
|
||||
);
|
||||
expect(multiLineText.length).toEqual(3);
|
||||
expect(multiLineText[0].length).toEqual(18 * 8); // &#xxxxx; x 8
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user