From 69ec6ee999d73081c49e903259f75e9e942d50f4 Mon Sep 17 00:00:00 2001 From: Mateusz Baginski Date: Mon, 23 Sep 2024 10:32:04 +0200 Subject: [PATCH] Adjust tests --- packages/ckeditor5-ui/tests/editorui/poweredby.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ckeditor5-ui/tests/editorui/poweredby.js b/packages/ckeditor5-ui/tests/editorui/poweredby.js index 53485ef8bf8..9d7a96f007e 100644 --- a/packages/ckeditor5-ui/tests/editorui/poweredby.js +++ b/packages/ckeditor5-ui/tests/editorui/poweredby.js @@ -72,7 +72,7 @@ describe( 'PoweredBy', () => { editor.fire( 'ready' ); editor.ui.destroy(); - editor.destroy().then( done ); + editor.destroy().then( () => done() ); } ).to.not.throw(); } ); @@ -460,7 +460,7 @@ 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(); } ); } ); @@ -468,7 +468,7 @@ describe( 'PoweredBy', () => { 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 ); } );