Browse Source

Tests: Added unit test coverage for BodyCollection constructor.

Marek Lewandowski 5 years ago
parent
commit
7c313a4695
1 changed files with 8 additions and 0 deletions
  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 );