1 import uncapitalize from './uncapitalize';
3 describe('uncapitalize()', () => {
4 it('returns an empty string when an empty string is provided', () => {
5 expect(uncapitalize('')).toBe('');
8 it('uncapitalizes a single letter', () => {
9 expect(uncapitalize('A')).toBe('a');
12 it('uncapitalizes only the first letter', () => {
13 expect(uncapitalize('Abc')).toBe('abc');
16 it('uncapitalizes the first letter even if it is already lowercase', () => {
17 expect(uncapitalize('abc')).toBe('abc');
20 it(`doesn't affect other letters`, () => {
21 expect(uncapitalize('ABc')).toBe('aBc');