UNPKG

fastify-openapi-glue

Version:

generate a fastify configuration from an openapi specification

14 lines (12 loc) 392 B
import { strict as assert } from "node:assert/strict"; // just test the basics to aid debugging import { test } from "node:test"; import { ParserBase } from "../lib/ParserBase.js"; test("generation of operationId works", (t) => { const pb = new ParserBase(); assert.equal( pb.makeOperationId("get", "/user/{name}"), "getUserByName", "get /user/{name} becomes getUserByName", ); });