UNPKG

openapi-codegen-typescript

Version:

OpenApi codegen for generating types an mocks from swagger json file

13 lines (12 loc) 488 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var getDescription_1 = require("./getDescription"); var scenarios = [ { input: { description: 'mock description' }, output: "/**\n * mock description\n */\n" }, { input: { description: undefined }, output: '' }, ]; it.each(scenarios)("should %s", function (_a) { var input = _a.input, output = _a.output; var result = getDescription_1.getDescription(input); expect(result).toBe(output); });