Skip to main content
Glama
mod_test.ts928 B
import { assertEquals, assertExists } from "@std/assert"; import { loadCfDatabase, getServiceByName, normalizeProperty } from "./mod.ts"; Deno.test("loadCfDatabase loads the database", async () => { const db = await loadCfDatabase({ services: ["AWS::Lambda::Function"] }); assertExists(db); assertEquals(typeof db, "object"); }); Deno.test("getServiceByName returns a service", async () => { await loadCfDatabase({ services: ["AWS::Lambda::Function"] }); const service = getServiceByName("AWS::Lambda::Function"); assertExists(service); assertEquals(service.typeName, "AWS::Lambda::Function"); }); Deno.test("normalizeProperty handles string types", () => { const prop = { type: "string" as const, description: "A test string property", }; const normalized = normalizeProperty(prop); assertEquals(normalized.type, "string"); assertEquals(normalized.description, "A test string property"); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server