define(["core/pubsubhub"], function (_pubsubhub) {
  "use strict";

  var respecDonePromise = new Promise(function (resolve) {
    (0, _pubsubhub.sub)("end-all", resolve, { once: true });
  }); /**
       * This Module adds a `respecIsReady` property to the document object.
       * The property returns a promise that settles when ReSpec finishes
       * processing the document.
       */


  Object.defineProperty(document, "respecIsReady", {
    get: function get() {
      return respecDonePromise;
    }
  });
});
//# sourceMappingURL=respec-ready.js.map