mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-10-15 09:55:16 +02:00
refactor(starter): upgrade to new version of gatsby
This commit is contained in:
10
src/utils/to-kebab-case.test.ts
Normal file
10
src/utils/to-kebab-case.test.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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");
|
||||
});
|
Reference in New Issue
Block a user