diff --git a/tests/linkediting.js b/tests/linkediting.js index b0a017d..e659af9 100644 --- a/tests/linkediting.js +++ b/tests/linkediting.js @@ -621,8 +621,8 @@ describe( 'LinkEditing', () => { } ); describe( 'upcast converter', () => { - it( 'should upcast attributes from initial data', done => { - VirtualTestEditor + it( 'should upcast attributes from initial data', () => { + return VirtualTestEditor .create( { initialData: '

Foo' + 'Bar

', @@ -657,13 +657,11 @@ describe( 'LinkEditing', () => { '<$text linkHref="example.com" linkIsDownloadable="true">Bar' + '' ); - } ) - .then( done ) - .catch( done ); + } ); } ); - it( 'should not upcast partial and incorrect attributes', done => { - VirtualTestEditor + it( 'should not upcast partial and incorrect attributes', () => { + return VirtualTestEditor .create( { initialData: '

Foo' + 'Bar

', @@ -698,9 +696,7 @@ describe( 'LinkEditing', () => { '<$text linkHref="example.com">Bar' + '' ); - } ) - .then( done ) - .catch( done ); + } ); } ); } ); } );