UNPKG

swagger-tests

Version:

A typescript framework for testing an api against a swagger 3.0 json file.

21 lines 686 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _1 = require("../constants/"); const underscore_1 = require("underscore"); class CoverageSupport { constructor(operationStr) { this.operationStr = operationStr; } verify() { if (underscore_1.contains(_1.API.operationResponses(), this.operationStr)) { _1.API.setTestedOperation(this.operationStr); return false; } else { pending(`There is no swagger defined version of ${this.operationStr}.`); return true; } } } exports.CoverageSupport = CoverageSupport; //# sourceMappingURL=coverage.support.js.map