8
0
فهرست منبع

Tests: Use RegExp to test ContextualBalloon error ids.

Maciej Gołaszewski 6 سال پیش
والد
کامیت
986aaed932
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/ckeditor5-ui/tests/panel/balloon/contextualballoon.js

+ 1 - 1
packages/ckeditor5-ui/tests/panel/balloon/contextualballoon.js

@@ -461,7 +461,7 @@ describe( 'ContextualBalloon', () => {
 		it( 'should throw an error when there is no stack of given id', () => {
 		it( 'should throw an error when there is no stack of given id', () => {
 			expect( () => {
 			expect( () => {
 				balloon.showStack( 'second' );
 				balloon.showStack( 'second' );
-			} ).to.throw( CKEditorError, 'contextualballoon-showstack-stack-not-exist: Cannot show not existing stack.' );
+			} ).to.throw( CKEditorError, /^contextualballoon-showstack-stack-not-exist/ );
 		} );
 		} );
 	} );
 	} );