8
0
Maciej Bukowski 6 лет назад
Родитель
Сommit
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 );