|
|
@@ -91,8 +91,10 @@ describe( 'Link', () => {
|
|
|
|
|
|
const linkElement = editorElement.querySelector( 'a' );
|
|
|
|
|
|
- expect( balloonPanelView.limiter ).to.equal( editorElement );
|
|
|
- expect( attachToSpy.calledWithExactly( linkElement ) ).to.true;
|
|
|
+ sinon.assert.calledWithExactly( attachToSpy, sinon.match( {
|
|
|
+ target: linkElement,
|
|
|
+ limiter: editorElement
|
|
|
+ } ) );
|
|
|
} );
|
|
|
|
|
|
it( 'should open panel attached to the selection, when there is non-collapsed selection', () => {
|
|
|
@@ -106,8 +108,10 @@ describe( 'Link', () => {
|
|
|
|
|
|
const selectedRange = editorElement.ownerDocument.getSelection().getRangeAt( 0 );
|
|
|
|
|
|
- expect( balloonPanelView.limiter ).to.equal( editorElement );
|
|
|
- expect( attachToSpy.calledWithExactly( selectedRange ) ).to.true;
|
|
|
+ sinon.assert.calledWithExactly( attachToSpy, sinon.match( {
|
|
|
+ target: selectedRange,
|
|
|
+ limiter: editorElement
|
|
|
+ } ) );
|
|
|
} );
|
|
|
|
|
|
it( 'should select panel input value when panel is opened', () => {
|