9 lines
296 B
JavaScript
9 lines
296 B
JavaScript
|
import { importForRuntime } from './index.ts';
|
||
|
import { chars } from './strings.ts';
|
||
|
|
||
|
const { test, assertEquals } = await importForRuntime('test_base');
|
||
|
|
||
|
test('chars fn properly splits strings into unicode characters', () => {
|
||
|
assertEquals(chars('😺😸😹'), ['😺', '😸', '😹']);
|
||
|
});
|