8
0

count.js 415 B

1234567891011121314151617
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. import count from '/ckeditor5/utils/count.js';
  7. describe( 'utils', () => {
  8. describe( 'count', () => {
  9. it( 'should returns number of editable items', () => {
  10. const totalNumber = count( [ 1, 2, 3, 4, 5 ] );
  11. expect( totalNumber ).to.equal( 5 );
  12. } );
  13. } );
  14. } );