Skip to content

Commit

Permalink
Tests (find-and-replace): Removed unused unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewand committed Jul 12, 2021
1 parent e97e73e commit cf9cac0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/ckeditor5-find-and-replace/tests/findandreplace.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,20 +512,6 @@ describe( 'FindAndReplace', () => {
expect( callbackSpy.callCount ).to.equal( 2 );
} );

it( 'should call a callback for changed blocks', () => {
editor.setData( LONG_TEXT );

const callbackSpy = sinon.spy();
findAndReplaceEditing.find( callbackSpy );
callbackSpy.resetHistory();

model.change( writer => {
model.insertContent( writer.createText( 'Foo bears foo' ), root.getChild( 0 ), 0 );
} );

expect( callbackSpy.callCount ).to.equal( 1 );
} );

it( 'should handle custom callback return value', () => {
editor.setData( FOO_BAR_PARAGRAPH );

Expand Down

0 comments on commit cf9cac0

Please sign in to comment.