|
|
@@ -6,9 +6,8 @@
|
|
|
'use strict';
|
|
|
|
|
|
import utils from '/ckeditor5/core/utils.js';
|
|
|
-import coreTestUtils from '/tests/core/_utils/utils.js';
|
|
|
|
|
|
-const getIteratorCount = coreTestUtils.getIteratorCount;
|
|
|
+const getIteratorCount = utils.count;
|
|
|
|
|
|
describe( 'utils', () => {
|
|
|
describe( 'spy', () => {
|
|
|
@@ -336,4 +335,11 @@ describe( 'utils', () => {
|
|
|
expect( bar.b() ).to.equal( 'b' );
|
|
|
} );
|
|
|
} );
|
|
|
+
|
|
|
+ describe( 'count', () => {
|
|
|
+ it( 'should returns number of editable items', () => {
|
|
|
+ const count = utils.count( [ 1, 2, 3, 4, 5 ] );
|
|
|
+ expect( count ).to.equal( 5 );
|
|
|
+ } );
|
|
|
+ } );
|
|
|
} );
|