@n1k1t/mock-server
Version:
Powerful util to setup mocks over HTTP APIs
27 lines • 922 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Provider = void 0;
const expectations_1 = require("../../../expectations");
const containers_1 = require("../containers");
const history_1 = require("../history");
const client_1 = require("../../../client");
class Provider {
constructor(provided) {
this.provided = provided;
this.client = client_1.OnsiteClient.build(this);
this.group = this.provided.group;
this.storages = {
expectations: new expectations_1.ExpectationsStorage(),
containers: new containers_1.ContainersStorage(),
history: new history_1.HistoryStorage(this.provided),
};
}
assign(payload) {
return Object.assign(this, payload);
}
static build(provided) {
return new Provider(provided);
}
}
exports.Provider = Provider;
//# sourceMappingURL=model.js.map