document.test.js 479 B

12345678910111213141516171819
  1. import { loadEnv } from './vm'
  2. import document from '../src/document'
  3. describe('document', () => {
  4. it('document prperties', () => {
  5. expect(document).toMatchObject({
  6. readyState: expect.any(String),
  7. visibilityState: expect.any(String),
  8. hidden: expect.any(Boolean),
  9. documentElement: expect.any(Object),
  10. location: expect.any(Object)
  11. })
  12. })
  13. it('addEventListener', () => {
  14. document.addEventListener('touchstart', () => {
  15. })
  16. })
  17. })