公告板
版本库
filestore
活动
搜索
登录
ai_exam
/
app-qxueyou-dify
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
初始化
wwf
2025-05-20
938c3e5a587ce950a94964ea509b9e7f8834dfae
[ai_exam/app-qxueyou-dify.git]
/
app
/
components
/
base
/
mermaid
/
utils.spec.ts
1
2
3
4
5
6
7
8
import { cleanUpSvgCode } from './utils'
describe('cleanUpSvgCode', () => {
it('replaces old-style <br> tags with the new style', () => {
const result = cleanUpSvgCode('<br>test<br>')
expect(result).toEqual('<br/>test<br/>')
})
})