@n1k1t/mock-server
Version:
Powerful util to setup mocks over HTTP APIs
22 lines • 700 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const operator_1 = require("../models/operator");
class ExecExpectationOperator extends operator_1.ExpectationOperator {
constructor() {
super(...arguments);
this.compiled = this.compileExecHandler(this.command, ['utils']);
}
get tags() {
return [];
}
match(context) {
const result = this.compiled('match', context);
return typeof result === 'boolean' ? result : true;
}
manipulate(context) {
this.compiled('manipulate', context);
return context;
}
}
exports.default = ExecExpectationOperator;
//# sourceMappingURL=exec.operator.js.map