amis2/packages/ooxml-viewer/__tests__/util/autoSpace.test.ts

10 lines
260 B
TypeScript
Raw Normal View History

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