소스 검색

Throw keyword is not a function.

Piotrek Koszuliński 10 년 전
부모
커밋
82fd54eed8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/ckeditor5-engine/tests/ckeditor/ckeditor.js

+ 1 - 1
packages/ckeditor5-engine/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' );