Selaa lähdekoodia

Tests: Adjust tests to recent changes in DataController.

Krzysztof Krztoń 7 vuotta sitten
vanhempi
commit
625174d693
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      packages/ckeditor5-table/tests/table-integration.js

+ 2 - 2
packages/ckeditor5-table/tests/table-integration.js

@@ -124,8 +124,8 @@ describe( 'Table feature – integration', () => {
 		it( 'fixing empty roots should be transparent to undo - multiple roots', () => {
 			const otherRoot = doc.createRoot( '$root', 'otherRoot' );
 
-			editor.data.set( viewTable( [ [ 'foo' ] ] ), 'main' );
-			editor.data.set( viewTable( [ [ 'foo' ] ] ), 'otherRoot' );
+			editor.data.set( { main: viewTable( [ [ 'foo' ] ] ) } );
+			editor.data.set( { otherRoot: viewTable( [ [ 'foo' ] ] ) } );
 
 			editor.model.change( writer => {
 				writer.remove( root.getChild( 0 ) );