Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge 3a4564c into c29379c
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewand committed Dec 20, 2019
2 parents c29379c + 3a4564c commit 4b52b3d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/decouplededitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,18 @@ describe( 'DecoupledEditor', () => {
);
}
)
.then( () => {
removeEditorDom();
} )
.then( done )
.catch( done );

function removeEditorDom() {
// Remove DOM leftovers to not affect other tests (#6002, #6018).
for ( const editorBody of document.body.querySelectorAll( 'div.ck.ck-body' ) ) {
editorBody.remove();
}
}
} );

it( 'throws error if it is initialized in textarea', done => {
Expand Down

0 comments on commit 4b52b3d

Please sign in to comment.