Skip to content
Snippets Groups Projects
Select Git revision
  • 6417ab8294d99756998f4652334f8189b036e265
  • master default protected
  • 1.31
  • 4.38.8
  • 4.38.7
  • 4.38.6
  • 4.38.5
  • 4.38.4
  • 4.38.3
  • 4.38.2
  • 4.38.1
  • 4.38.0
  • 4.37.2
  • 4.37.1
  • 4.37.0
  • 4.36.0
  • 4.35.0
  • 4.34.1
  • 4.34.0
  • 4.33.1
  • 4.33.0
  • 4.32.2
  • 4.32.1
23 results

ready.mjs

Blame
  • ready.mjs 747 B
    'use strict';
    
    
    import {initJSDOM} from "../../util/jsdom.mjs";
    
    let windowReady;
    let domReady;
    
    describe('Ready', function () {
    
        before(function (done) {
            initJSDOM().then(() => {
    
                import("../../../source/dom/ready.mjs").then((m) => {
                    domReady = m['domReady'];
                    windowReady = m['windowReady'];
                    done()
                });
    
            });
    
    
        })
    
        describe('domReady', function () {
    
            it('resolve promise', function (done) {
                domReady.then(done).catch(e => done(e));
            });
    
        });
    
        describe('windowReady', function () {
    
            it('resolve promise', function (done) {
                windowReady.then(done).catch(e => done(e));
            });
    
        });
    
    
    });