forked from tajo/ladle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix kebab casing of story names to convert MapSDK into map-sdk and no…
…t map-s-d-k (tajo#193) * Improve the kebab casing of story names to convert MapSDK into map-sdk and not map-s-d-k * Inline capitals chars
- Loading branch information
Showing
5 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ladle/react": patch | ||
--- | ||
|
||
Improve the kebab casing of story names to convert MapSDK into map-sdk and not map-s-d-k. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { kebabCase } from "../lib/cli/vite-plugin/naming-utils.js"; | ||
|
||
test("kebabCase", () => { | ||
expect(kebabCase("ChampsÉlysées")).toBe("champs-élysées"); | ||
expect(kebabCase("our-animals--mammals")).toBe("our-animals--mammals"); | ||
expect(kebabCase("the quick brown fox")).toBe("the-quick-brown-fox"); | ||
expect(kebabCase("the-quick-brown-fox")).toBe("the-quick-brown-fox"); | ||
expect(kebabCase("the_quick_brown_fox")).toBe("the-quick-brown-fox"); | ||
expect(kebabCase("theQuickBrownFox")).toBe("the-quick-brown-fox"); | ||
expect(kebabCase("thequickbrownfox")).toBe("thequickbrownfox"); | ||
expect(kebabCase("theQUICKBrownFox")).toBe("the-quick-brown-fox"); | ||
}); |
This file was deleted.
Oops, something went wrong.