8
0

global.js 564 B

123456789101112131415161718192021222324
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* global window, document */
  6. import global from 'ckeditor5/utils/dom/global.js';
  7. describe( 'global', () => {
  8. describe( 'global', () => {
  9. describe( 'window', () => {
  10. it( 'equals native DOM window', () => {
  11. expect( global.window ).to.equal( window );
  12. } );
  13. } );
  14. describe( 'document', () => {
  15. it( 'equals native DOM document', () => {
  16. expect( global.document ).to.equal( document );
  17. } );
  18. } );
  19. } );
  20. } );