浏览代码

Minor test name and whitespace fix.

Szymon Kupś 9 年之前
父节点
当前提交
96871d23ff

+ 1 - 1
packages/ckeditor5-engine/src/treeview/selection.js

@@ -91,7 +91,7 @@ export default class Selection {
 	 * @type {Boolean}
 	 */
 	get isCollapsed() {
-		return this.rangeCount === 1 &&  this._ranges[ 0 ].isCollapsed;
+		return this.rangeCount === 1 && this._ranges[ 0 ].isCollapsed;
 	}
 
 	/**

+ 1 - 1
packages/ckeditor5-engine/tests/treeview/selection.js

@@ -83,7 +83,7 @@ describe( 'Selection', () => {
 	} );
 
 	describe( 'isCollapsed', () => {
-		it( 'should return true when there is single collapsed ranges', () => {
+		it( 'should return true when there is single collapsed range', () => {
 			const range = Range.createFromParentsAndOffsets( el, 5, el, 5 );
 			selection.addRange( range );