소스 검색

Tests: Added unit test coverage for BodyCollection constructor.

Marek Lewandowski 5 년 전
부모
커밋
813f71195c
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      packages/ckeditor5-ui/tests/editorui/bodycollection.js

+ 8 - 0
packages/ckeditor5-ui/tests/editorui/bodycollection.js

@@ -28,6 +28,14 @@ describe( 'BodyCollection', () => {
 		}
 	} );
 
+	describe( 'constructor', () => {
+		it( 'assigns locale', () => {
+			const instance = new BodyCollection( locale );
+
+			expect( instance.locale ).to.be.equal( locale );
+		} );
+	} );
+
 	describe( 'attachToDom', () => {
 		it( 'should create wrapper and put the collection in that wrapper', () => {
 			const body = new BodyCollection( locale );