We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1670bc9 commit d5ce499Copy full SHA for d5ce499
tests/format.test.ts
@@ -0,0 +1,20 @@
1
+import { describe, expect, it } from 'vitest'
2
+import { toLowerCase } from '../src/format'
3
+
4
+describe('toLowerCase', () => {
5
+ it('should convert camelCase to hyphen-case', () => {
6
+ expect(toLowerCase('camelCase')).toBe('camel-case')
7
+ })
8
9
+ it('should convert PascalCase to hyphen-case', () => {
10
+ expect(toLowerCase('PascalCase')).toBe('pascal-case')
11
12
13
+ it('should handle strings with spaces', () => {
14
+ expect(toLowerCase('Hello World')).toBe('hello-world')
15
16
17
+ it('should handle empty strings', () => {
18
+ expect(toLowerCase('')).toBe('')
19
20
+})
0 commit comments