mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-02 21:45:14 +01:00
9 lines
311 B
TypeScript
9 lines
311 B
TypeScript
import { countBytesInString } from '../src/countBytesInString';
|
|
|
|
it('countBytesInString', () => {
|
|
expect(countBytesInString('aaa')).toBe(3);
|
|
expect(countBytesInString('č')).toBe(2);
|
|
expect(countBytesInString('😀')).toBe(4);
|
|
expect(countBytesInString('+ěčřěžšýžřšý')).toBe(23);
|
|
});
|