window.test.js 607 B

1234567891011121314151617181920
  1. import { loadEnv } from './vm'
  2. import * as window from '../src/window'
  3. describe('window', () => {
  4. it('window properties', () => {
  5. expect(window).toMatchObject({
  6. WebSocket: expect.any(Function),
  7. document: expect.any(Object),
  8. devicePixelRatio: expect.any(Number),
  9. innerWidth: expect.any(Number),
  10. innerHeight: expect.any(Number),
  11. navigator: expect.any(Object),
  12. Image: expect.any(Function),
  13. Audio: expect.any(Function),
  14. //XMLHttpRequest: expect.any(Function),
  15. localStorage: expect.any(Object),
  16. location: expect.any(Object)
  17. })
  18. })
  19. })