test:修改更正代码注释'加粗'=>'删除线'
This commit is contained in:
parent
10ebbe4352
commit
f707c03b24
|
@ -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 被调用
|
||||
|
|
Loading…
Reference in New Issue