UNPKG

@technobuddha/library

Version:
9 lines (7 loc) β€’ 261 B
import { unicodeLength } from './unicode-length.ts'; describe('unicodeLength', () => { test('should detect surrogates', () => { expect('πŸ˜€πŸ˜πŸ˜‚πŸ˜ΊπŸ˜ΈπŸ˜Ή').toHaveLength(12); expect(unicodeLength('πŸ˜€πŸ˜πŸ˜‚πŸ˜ΊπŸ˜ΈπŸ˜Ή')).toBe(6); }); });