|
|
@@ -81,7 +81,12 @@ describe( 'Italic', () => {
|
|
|
it( 'should set editor keystroke', () => {
|
|
|
const spy = sinon.spy( editor, 'execute' );
|
|
|
|
|
|
- const wasHandled = editor.keystrokes.press( { keyCode: keyCodes.i, ctrlKey: true } );
|
|
|
+ const wasHandled = editor.keystrokes.press( {
|
|
|
+ keyCode: keyCodes.i,
|
|
|
+ ctrlKey: true,
|
|
|
+ preventDefault: sinon.spy(),
|
|
|
+ stopPropagation: sinon.spy()
|
|
|
+ } );
|
|
|
|
|
|
expect( wasHandled ).to.be.true;
|
|
|
expect( spy.calledOnce ).to.be.true;
|