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

Commit

Permalink
Merge 3980920 into ece87bc
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Sep 2, 2019
2 parents ece87bc + 3980920 commit 81200d2
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions tests/linkediting.js
Expand Up @@ -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: '<p><a href="url" target="_blank" rel="noopener noreferrer" download="file">Foo</a>' +
'<a href="example.com" download="file">Bar</a></p>',
Expand Down Expand Up @@ -657,13 +657,11 @@ describe( 'LinkEditing', () => {
'<$text linkHref="example.com" linkIsDownloadable="true">Bar</$text>' +
'</paragraph>'
);
} )
.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: '<p><a href="url" target="_blank" download="something">Foo</a>' +
'<a href="example.com" download="test">Bar</a></p>',
Expand Down Expand Up @@ -698,9 +696,7 @@ describe( 'LinkEditing', () => {
'<$text linkHref="example.com">Bar</$text>' +
'</paragraph>'
);
} )
.then( done )
.catch( done );
} );
} );
} );
} );
Expand Down

0 comments on commit 81200d2

Please sign in to comment.