UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

27 lines 848 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 []; } match(context) { return this.compiled ? !this.compiled.match(context) : false; } manipulate(context) { return context; } } exports.default = NotExpectationOperator; //# sourceMappingURL=not.operator.js.map