Przeglądaj źródła

Tests: fixed tests for comment element.

Szymon Cofalik 8 lat temu
rodzic
commit
060cf21d7b

+ 2 - 2
packages/ckeditor5-engine/tests/view/domconverter/domconverter.js

@@ -99,7 +99,7 @@ describe( 'DomConverter', () => {
 			it( 'should return false for other arguments', () => {
 				expect( converter.isElement( text ) ).to.be.false;
 				expect( converter.isElement( documentFragment ) ).to.be.false;
-				expect( converter.isText( comment ) ).to.be.false;
+				expect( converter.isElement( comment ) ).to.be.false;
 				expect( converter.isElement( {} ) ).to.be.false;
 			} );
 		} );
@@ -112,7 +112,7 @@ describe( 'DomConverter', () => {
 			it( 'should return false for other arguments', () => {
 				expect( converter.isDocumentFragment( text ) ).to.be.false;
 				expect( converter.isDocumentFragment( element ) ).to.be.false;
-				expect( converter.isText( comment ) ).to.be.false;
+				expect( converter.isDocumentFragment( comment ) ).to.be.false;
 				expect( converter.isDocumentFragment( {} ) ).to.be.false;
 			} );
 		} );