8
0
Просмотр исходного кода

Tests: Use RegExp to test ContextualBalloon error ids.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
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', () => {
 			expect( () => {
 				balloon.showStack( 'second' );
-			} ).to.throw( CKEditorError, 'contextualballoon-showstack-stack-not-exist: Cannot show not existing stack.' );
+			} ).to.throw( CKEditorError, /^contextualballoon-showstack-stack-not-exist/ );
 		} );
 	} );