readiness-manager
Version:
👨💼 Define when your app is ready
39 lines • 802 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class ReadinessManagerMockImpl {
constructor() {
this._ready = false;
}
get ready() {
return this._ready;
}
status() {
return {};
}
setReady(isReady) {
this._ready = isReady;
}
register(_name, _action, _debug) {
return undefined;
}
run() {
return this;
}
orchestrate() {
this._ready = true;
}
onReady(callback) {
callback();
return this;
}
onActionReady(_name, callback) {
callback();
return this;
}
onError(_errorHandler) {
return this;
}
}
const manager = new ReadinessManagerMockImpl();
exports.default = manager;
//# sourceMappingURL=mock.js.map