Move capitalize into twenty-shared (#9414)
capitalize had been moved into twenty-shared. Let's remove the duplicates in server and front !
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
import { capitalize } from '../capitalize.util';
|
||||
describe('capitalize', () => {
|
||||
it('should capitalize a string', () => {
|
||||
expect(capitalize('test')).toBe('Test');
|
||||
});
|
||||
|
||||
it('should return an empty string if input is an empty string', () => {
|
||||
expect(capitalize('')).toBe('');
|
||||
});
|
||||
});
|
||||
1
packages/twenty-shared/src/utils/strings/index.ts
Normal file
1
packages/twenty-shared/src/utils/strings/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './capitalize.util';
|
||||
Reference in New Issue
Block a user