Переглянути джерело

Marked unreachable code coverage.

fredck 11 роки тому
батько
коміт
4be8a0f5f9
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      packages/ckeditor5-ui/src/promise.js

+ 1 - 0
packages/ckeditor5-ui/src/promise.js

@@ -19,6 +19,7 @@ CKEDITOR.define( function() {
 	//
 	//
 	// http://caniuse.com/#feat=promises
 	// http://caniuse.com/#feat=promises
 
 
+	/* istanbul ignore next: we expect this to never happen for now, so we'll not have coverage for this */
 	if ( !window.Promise ) {
 	if ( !window.Promise ) {
 		throw 'The Promise class is not available natively. CKEditor is not compatible with this browser.';
 		throw 'The Promise class is not available natively. CKEditor is not compatible with this browser.';
 	}
 	}