8
0

count.js 437 B

123456789101112131415
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. import count from '../src/count';
  6. describe( 'utils', () => {
  7. describe( 'count', () => {
  8. it( 'should returns number of editable items', () => {
  9. const totalNumber = count( [ 1, 2, 3, 4, 5 ] );
  10. expect( totalNumber ).to.equal( 5 );
  11. } );
  12. } );
  13. } );