/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ /* global window */ import isWindow from '../../src/dom/iswindow'; describe( 'isWindow()', () => { it( 'detects DOM Window', () => { expect( isWindow( window ) ).to.be.true; expect( isWindow( {} ) ).to.be.false; expect( isWindow( null ) ).to.be.false; expect( isWindow( undefined ) ).to.be.false; expect( isWindow( new Date() ) ).to.be.false; expect( isWindow( 42 ) ).to.be.false; } ); } );