test(capitalize): Add lodash test case (#515)

Co-authored-by: dayongkr <dayongkr@gmail.com>
This commit is contained in:
YooJin Lee 2024-09-12 21:32:16 +09:00 committed by GitHub
parent 9aa89a7cfb
commit e264ed6cf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest';
import { capitalize } from '../../string/capitalize';
describe('capitalize', () => {
it('should capitalize the first character of a string', () => {
expect(capitalize('fred')).toBe('Fred');
expect(capitalize('Fred')).toBe('Fred');
expect(capitalize(' fred')).toBe(' fred');
});
});