UNPKG

@n1k1t/mock-server

Version:

The ultimate toolkit to intercept, transform, and simulate HTTP/WS traffic with type-safe expectations

27 lines 868 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const operator_1 = require("../models/operator"); class NotExpectationOperator extends operator_1.ExpectationOperator { constructor() { super(...arguments); this.compiled = (() => { const extracted = this.extractNestedSchema(this.command); if (!extracted) { return null; } const Operator = this.operators[extracted.key]; return new Operator(this.operators, extracted.nested); })(); } get tags() { return {}; } async match(context) { return this.compiled ? !(await this.compiled.match(context)) : false; } async manipulate(context) { return context; } } exports.default = NotExpectationOperator; //# sourceMappingURL=not.operator.js.map