amis/packages/office-viewer/__tests__/util/autoSpace.test.ts
吴多益 0f97e378d9
chore: 换一下 office-viewer 包名 (#7321)
* chore: 换一下 office-viewer 包名

* 恢复误改的文件
2023-07-03 14:31:27 +08:00

10 lines
260 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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测试');
});