test: 修改插入图片测试用例

This commit is contained in:
blackhu0804 2021-04-24 21:42:47 +08:00
parent 00539db4ca
commit 9295115f10
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ describe('upload img', () => {
expect(document.execCommand).toBeCalledWith(
'insertHTML',
false,
`<img src="${imgUrl}" style="max-width:100%;"/>`
`<img src="${imgUrl}" style="max-width:100%;" contenteditable="false"/>`
)
})
@ -101,7 +101,7 @@ describe('upload img', () => {
expect(document.execCommand).toBeCalledWith(
'insertHTML',
false,
`<img src="${imgUrl}" style="max-width:100%;"/>`
`<img src="${imgUrl}" style="max-width:100%;" contenteditable="false"/>`
)
expect(callback).toBeCalledWith(imgUrl, undefined, undefined)
})