Browse Source

test: 空格转  

pull/4492/head
wangfupeng 3 years ago
parent
commit
0ad15c6a8f
  1. 4
      packages/core/__tests__/utils/util.test.ts

4
packages/core/__tests__/utils/util.test.ts

@ -30,11 +30,11 @@ describe('utils', () => {
it('replace html symbol', () => {
const html = '<p>hello world</p>'
const res = replaceHtmlSpecialSymbols(html)
expect(res).toBe('&lt;p&gt;hello&nbsp;&nbsp;world&lt;/p&gt;')
expect(res).toBe('&lt;p&gt;hello &nbsp;world&lt;/p&gt;')
})
it('replace html symbol', () => {
const html = '&lt;p&gt;hello&nbsp;&nbsp;world&lt;/p&gt;'
const html = '&lt;p&gt;hello &nbsp;world&lt;/p&gt;'
const res = deReplaceHtmlSpecialSymbols(html)
expect(res).toBe('<p>hello world</p>')
})

Loading…
Cancel
Save