Procházet zdrojové kódy

Tests: Verified that deprecated property gets properly reported.

Marek Lewandowski před 6 roky
rodič
revize
5de6bc4fb9
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      packages/ckeditor5-utils/tests/locale.js

+ 2 - 1
packages/ckeditor5-utils/tests/locale.js

@@ -150,9 +150,10 @@ describe( 'Locale', () => {
 
 
 	describe( 'language()', () => {
 	describe( 'language()', () => {
 		it( 'should return #uiLanguage', () => {
 		it( 'should return #uiLanguage', () => {
-			sinon.stub( console, 'warn' );
+			const stub = sinon.stub( console, 'warn' );
 
 
 			expect( locale.language ).to.equal( locale.uiLanguage );
 			expect( locale.language ).to.equal( locale.uiLanguage );
+			sinon.assert.calledWithMatch( stub, 'locale-deprecated-language-property' );
 		} );
 		} );
 
 
 		it( 'should warn about deprecation', () => {
 		it( 'should warn about deprecation', () => {