Skip to content

Commit c421520

Browse files
committed
text(createNormalizedUrl): add UTF8 & emoji tests
1 parent 383e164 commit c421520

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/utils/html.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -288,4 +288,12 @@ describe("createNormalizedUrl", () => {
288288
it("Permits Chinese characters", () => {
289289
equal(createNormalizedUrl("文档"), "文档");
290290
});
291+
292+
it("Permits Emoji characters", () => {
293+
equal(createNormalizedUrl("🐌 Foo 🪐.md"), "🐌_Foo_🪐.md");
294+
});
295+
296+
it("Permits UTF8 characters", () => {
297+
equal(createNormalizedUrl("◉ bar⚐.md"), "◉_bar⚐.md");
298+
});
291299
});

0 commit comments

Comments
 (0)