浏览代码

Changed function name.

Maciej Bukowski 6 年之前
父节点
当前提交
371e05c368
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-watchdog/tests/watchdog.js

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

@@ -702,7 +702,7 @@ describe( 'Watchdog', () => {
 		let unhandledRejectionEventSupported;
 
 		before( () => {
-			return doesEnvSupportUnhandledRejectionEvent()
+			return isUnhandledRejectionEventSupported()
 				.then( val => {
 					unhandledRejectionEventSupported = val;
 				} );
@@ -920,7 +920,7 @@ function throwCKEditorError( name, context ) {
 
 // Feature detection works as a race condition - if the `unhandledrejection` event
 // is supported then the listener should be called first. Otherwise the timeout will be reached.
-function doesEnvSupportUnhandledRejectionEvent() {
+function isUnhandledRejectionEventSupported() {
 	return new Promise( res => {
 		window.addEventListener( 'unhandledrejection', function listener() {
 			res( true );