Skip to main content
Glama
issue-154.test.js520 B
'use strict' const { test } = require('node:test') const FindMyWay = require('..') const noop = () => {} test('Should throw when not sending a string', t => { t.plan(3) const findMyWay = FindMyWay() t.assert.throws(() => { findMyWay.on('GET', '/t1', { constraints: { version: 42 } }, noop) }) t.assert.throws(() => { findMyWay.on('GET', '/t2', { constraints: { version: null } }, noop) }) t.assert.throws(() => { findMyWay.on('GET', '/t2', { constraints: { version: true } }, noop) }) })

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/krtw00/search-mcp'

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