mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:19:01 +08:00
10 lines
260 B
TypeScript
10 lines
260 B
TypeScript
|
import {cjkspace} from '../../src/util/autoSpace';
|
|||
|
|
|||
|
test('autoSpace', async () => {
|
|||
|
expect(cjkspace('a中'.split(''))).toBe('a 中');
|
|||
|
});
|
|||
|
|
|||
|
test('autoSpace 2', async () => {
|
|||
|
expect(cjkspace('abc中def,测试'.split(''))).toBe('abc 中 def,测试');
|
|||
|
});
|