Procházet zdrojové kódy

Update test function names.

Maksymilian Barnaś před 9 roky
rodič
revize
fe8ad9f34d
1 změnil soubory, kde provedl 6 přidání a 6 odebrání
  1. 6 6
      dev/bender/plugins/ckeditor5/static/extensions.js

+ 6 - 6
dev/bender/plugins/ckeditor5/static/extensions.js

@@ -29,27 +29,27 @@
 		chai.use( addThrowsCKEditorError.bind( null, CKEditorError ) );
 		chai.use( addThrowsCKEditorError.bind( null, CKEditorError ) );
 
 
 		// Self-test of the extension. Function names will help find those tests in case of regression.
 		// Self-test of the extension. Function names will help find those tests in case of regression.
-		chai.expect( function throwCKEditorErrorSelfTest() {
+		chai.expect( function throwCKEditorErrorSelfTest1() {
 			throw new CKEditorError();
 			throw new CKEditorError();
 		} ).to.throwCKEditorError();
 		} ).to.throwCKEditorError();
 
 
-		chai.expect( function throwCKEditorErrorSelfTest() {
+		chai.expect( function throwCKEditorErrorSelfTest2() {
 			throw new Error();
 			throw new Error();
 		} ).to.not.throwCKEditorError();
 		} ).to.not.throwCKEditorError();
 
 
-		chai.expect( function throwCKEditorErrorSelfTest() {
+		chai.expect( function throwCKEditorErrorSelfTest3() {
 			throw new CKEditorError( 'custom message' );
 			throw new CKEditorError( 'custom message' );
 		} ).to.throwCKEditorError( 'message' );
 		} ).to.throwCKEditorError( 'message' );
 
 
-		chai.expect( function throwCKEditorErrorSelfTest() {
+		chai.expect( function throwCKEditorErrorSelfTest4() {
 			throw new CKEditorError( 'another msg' );
 			throw new CKEditorError( 'another msg' );
 		} ).to.throwCKEditorError( /msg/ );
 		} ).to.throwCKEditorError( /msg/ );
 
 
-		chai.expect( function throwCKEditorErrorSelfTest() {
+		chai.expect( function throwCKEditorErrorSelfTest5() {
 			throw new CKEditorError( 'another msg' );
 			throw new CKEditorError( 'another msg' );
 		} ).to.throwCKEditorError( /^another/ );
 		} ).to.throwCKEditorError( /^another/ );
 
 
-		chai.expect( function throwCKEditorErrorSelfTest() {
+		chai.expect( function throwCKEditorErrorSelfTest6() {
 			throw new CKEditorError( 'another msg' );
 			throw new CKEditorError( 'another msg' );
 		} ).to.throwCKEditorError( /msg$/ );
 		} ).to.throwCKEditorError( /msg$/ );
 	} );
 	} );