@technobuddha/library
Version:
A large library of useful functions
11 lines (9 loc) • 338 B
text/typescript
import { toASCII } from './to-ascii.ts';
describe('toASCII', () => {
test('should bad characters to be replaces', () => {
expect(toASCII('crème brûlée')).toBe('creme brulee');
// cspell:ignore ABCD
expect(toASCII('ABCD')).toBe('ABCD');
expect(toASCII('⒜⒝⒞⒟')).toBe('(a)(b)(c)(d)');
});
});