UNPKG

@technobuddha/library

Version:
11 lines (9 loc) 338 B
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)'); }); });