count.js 400 B

123456789101112131415
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. import count from '/ckeditor5/utils/count.js';
  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. } );