浏览代码

Throw keyword is not a function.

Piotrek Koszuliński 10 年之前
父节点
当前提交
275069fc2e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-utils/tests/ckeditor/ckeditor.js

+ 1 - 1
packages/ckeditor5-utils/tests/ckeditor/ckeditor.js

@@ -88,7 +88,7 @@ describe( 'create', function() {
 		var CKEDITOR = modules.ckeditor;
 
 		return CKEDITOR.create( '.undefined' ).then( function() {
-			throw( 'It should not enter this function' );
+			throw new Error( 'It should not enter this function' );
 		} ).catch( function( error ) {
 			expect( error ).to.be.instanceof( Error );
 			expect( error.message ).to.equal( 'Element not found' );