js-essential-kit
Version:
This library provides a comprehensive set of utility functions for various common tasks, including date calculations, formatting, masking, normalizing data, and validation
16 lines (12 loc) • 396 B
text/typescript
import { clean } from '../lib/diacritics'
describe('clean', () => {
it('should remove diacritics from input string', () => {
expect(clean('ÁÀÂÃÄ')).toEqual('AAAAA')
})
it('should return empty string if input is empty', () => {
expect(clean('')).toEqual('')
})
it('should handle special characters and symbols', () => {
expect(clean('çéø')).toEqual('ceo')
})
})