Skip to content

Commit 72abea4

Browse files
committed
test: Refactor normalizeMethodName tests
Removed redundant tests.
1 parent e297803 commit 72abea4

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/components/helper.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, it, expect } from '@jest/globals';
12
import { normalizeMethodName } from './helper';
23

34
describe('normalizeMethodName', () => {
@@ -11,12 +12,7 @@ describe('normalizeMethodName', () => {
1112
expect(normalizeMethodName('foo.bar.baz')).toBe('fooBarBaz');
1213
});
1314

14-
it('handles both dots and underscores', () => {
15-
expect(normalizeMethodName('foo_bar.baz_qux')).toBe('fooBarBazQux');
16-
});
17-
1815
it('capitalizes only subsequent parts', () => {
19-
expect(normalizeMethodName('hello.world')).toBe('helloWorld');
2016
expect(normalizeMethodName('one.two.three')).toBe('oneTwoThree');
2117
});
2218

0 commit comments

Comments
 (0)