浏览代码

Tests: fixed tests for comment element.

Szymon Cofalik 8 年之前
父节点
当前提交
060cf21d7b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-engine/tests/view/domconverter/domconverter.js

+ 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;
 			} );
 		} );