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

Tests: Added an Editor class test to check the support of config.contentLanguage.

Aleksander Nowodzinski 6 лет назад
Родитель
Сommit
bf642e8343
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      packages/ckeditor5-core/tests/editor/editor.js

+ 8 - 0
packages/ckeditor5-core/tests/editor/editor.js

@@ -197,6 +197,14 @@ describe( 'Editor', () => {
 			const editor = new TestEditor( { language: 'pl' } );
 
 			expect( editor.locale.language ).to.equal( 'pl' );
+			expect( editor.locale.contentLanguage ).to.equal( 'pl' );
+		} );
+
+		it( 'is configured with the config.contentLanguage', () => {
+			const editor = new TestEditor( { language: 'pl', contentLanguage: 'ar' } );
+
+			expect( editor.locale.language ).to.equal( 'pl' );
+			expect( editor.locale.contentLanguage ).to.equal( 'ar' );
 		} );
 	} );