Skip to content

Commit

Permalink
Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Sep 23, 2024
1 parent d5f3816 commit 69ec6ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ckeditor5-ui/tests/editorui/poweredby.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe( 'PoweredBy', () => {

editor.fire( 'ready' );
editor.ui.destroy();
editor.destroy().then( done );
editor.destroy().then( () => done() );
} ).to.not.throw();
} );

Expand Down Expand Up @@ -460,15 +460,15 @@ describe( 'PoweredBy', () => {
describe( 'if there was no balloon', () => {
it( 'should not throw', done => {
expect( () => {
editor.destroy().then( done );
editor.destroy().then( () => done() );
} ).to.not.throw();
} );
} );

it( 'should destroy the emitter listeners', done => {
const spy = testUtils.sinon.spy( editor.ui.poweredBy, 'stopListening' );

editor.destroy().then( done );
editor.destroy().then( () => done() );

sinon.assert.calledOnce( spy );
} );
Expand Down

0 comments on commit 69ec6ee

Please sign in to comment.