This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/tools/utils/__test__/capitalize.test.ts

11 lines
370 B
TypeScript

import { capitalize } from '../capitalize'
describe('tools/utils/capitalize', () => {
it('should capitalize the first letter of a string', () => {
expect(capitalize('hello')).toEqual('Hello')
expect(capitalize('HeLlo')).toEqual('HeLlo')
expect(capitalize('member(s)')).toEqual('Member(s)')
expect(capitalize('Member(s)')).toEqual('Member(s)')
})
})