Skip to content

Commit

Permalink
test: sluggifyString unit test (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 authored Dec 20, 2023
1 parent c96025d commit b76272e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions __tests__/utils/sluggify-string.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sluggifyString from "@/utils/sluggify-string"
import { it, expect } from "vitest"

it("should keep only lowercase and '-'", () => {
expect(sluggifyString('hél#lö (d)\'wórld "123"_456.xyz')).toBe(
"hello-dworld-xyz"
)
})

0 comments on commit b76272e

Please sign in to comment.