Skip to content

Commit 88bbd3e

Browse files
committed
test: add test case for returning slug format strings unchanged
1 parent e17cd68 commit 88bbd3e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

package/stringUtil/slugify/index.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ describe("slugify", () => {
4343
expect(slugify("안녕하세요 Hello World")).toBe("안녕하세요-hello-world");
4444
expect(slugify("프로젝트 개발")).toBe("프로젝트-개발");
4545
});
46+
47+
test("slug 형태의 문자열은 그대로 slug 형태로 반환한다.", () => {
48+
const input = "Hello-World";
49+
const output = slugify(input);
50+
expect(output).toBe("hello-world");
51+
});
4652
});

0 commit comments

Comments
 (0)