Sfoglia il codice sorgente

Added missing test for removed API.

Kuba Niegowski 5 anni fa
parent
commit
27fff42ba7
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      packages/ckeditor5-table/tests/tablewalker.js

+ 4 - 3
packages/ckeditor5-table/tests/tablewalker.js

@@ -630,8 +630,9 @@ describe( 'TableWalker', () => {
 
 
 		const { value } = walker.next();
 		const { value } = walker.next();
 
 
-		expect( () => value.isSpanned ).to.throw( CKEditorError, 'improper-api-usage' );
-		expect( () => value.colspan ).to.throw( CKEditorError, 'improper-api-usage' );
-		expect( () => value.rowspan ).to.throw( CKEditorError, 'improper-api-usage' );
+		expect( () => value.isSpanned ).to.throw( CKEditorError, 'tablewalker-improper-api-usage' );
+		expect( () => value.colspan ).to.throw( CKEditorError, 'tablewalker-improper-api-usage' );
+		expect( () => value.rowspan ).to.throw( CKEditorError, 'tablewalker-improper-api-usage' );
+		expect( () => value.cellIndex ).to.throw( CKEditorError, 'tablewalker-improper-api-usage' );
 	} );
 	} );
 } );
 } );