mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
16 lines
444 B
TypeScript
16 lines
444 B
TypeScript
import {capitalize} from 'sentry/utils/string/capitalize';
|
|
|
|
describe('capitalize', () => {
|
|
it('capitalizes the first letter of a string', () => {
|
|
expect(capitalize('hello')).toEqual('Hello');
|
|
});
|
|
|
|
it('lowercases the rest of the string', () => {
|
|
expect(capitalize('HELLO')).toEqual('Hello');
|
|
});
|
|
|
|
it('does not change the string if it is already capitalized', () => {
|
|
expect(capitalize('Hello')).toEqual('Hello');
|
|
});
|
|
});
|