Skip to main content
Glama
issue-93.test.js624 B
'use strict' const { test } = require('node:test') const FindMyWay = require('../') const noop = () => {} test('Should keep semver store when split node', t => { t.plan(4) const findMyWay = FindMyWay() findMyWay.on('GET', '/t1', { constraints: { version: '1.0.0' } }, noop) findMyWay.on('GET', '/t2', { constraints: { version: '2.1.0' } }, noop) t.assert.ok(findMyWay.find('GET', '/t1', { version: '1.0.0' })) t.assert.ok(findMyWay.find('GET', '/t2', { version: '2.x' })) t.assert.ok(!findMyWay.find('GET', '/t1', { version: '2.x' })) t.assert.ok(!findMyWay.find('GET', '/t2', { version: '1.0.0' })) })

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