mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 07:18:17 +01:00
11 lines
401 B
TypeScript
11 lines
401 B
TypeScript
import toKebabCase from "./to-kebab-case";
|
|
|
|
test("toKebabCase", () => {
|
|
expect(toKebabCase()).toBe("");
|
|
expect(toKebabCase("lorEm")).toBe("lorem");
|
|
expect(toKebabCase("lorem ipsum")).toBe("lorem-ipsum");
|
|
expect(toKebabCase("lorem_ipsum")).toBe("lorem-ipsum");
|
|
expect(toKebabCase("lorem #ipsum")).toBe("lorem-ipsum");
|
|
expect(toKebabCase("Lorem Ipsum Dolor")).toBe("lorem-ipsum-dolor");
|
|
});
|