瀏覽代碼

Use more generic error in the manual test.

Piotr Jasiun 6 年之前
父節點
當前提交
cab4312931
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-watchdog/tests/manual/watchdog.js

+ 2 - 2
packages/ckeditor5-watchdog/tests/manual/watchdog.js

@@ -7,7 +7,6 @@
 
 import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
 import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
-import CKEditorError from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
 
 import Watchdog from '../../src/watchdog';
 
@@ -23,7 +22,8 @@ class TypingError {
 			const commandArgs = data[ 0 ];
 
 			if ( commandArgs.text === '1' ) {
-				throw new CKEditorError( 'Fake error - input command executed with value `1`', this );
+				// Simulate error.
+				this.editor.foo.bar = 'bom';
 			}
 		} );
 	}