test:修改更正代码注释'加粗'=>'删除线'

This commit is contained in:
lkw199711 2020-06-20 23:23:57 +08:00
parent 10ebbe4352
commit f707c03b24
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ test('加删除线', () => {
// 找到 strikeThrough 菜单
strikethroughMenu = getMenuInstance(editor, Strikethrough) as Strikethrough
// 执行点击事件,模拟删除线
// 执行点击事件,模拟删除线
mockCmdFn(document)
;(strikethroughMenu as Strikethrough).clickHandler()
expect(document.execCommand).toBeCalledWith('strikeThrough', false, undefined) // mock fn 被调用