mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 21:39:53 +08:00
0f97e378d9
* chore: 换一下 office-viewer 包名 * 恢复误改的文件
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,测试');
|
||
});
|