Skip to main content
Glama

mcp-appstore

by appreply-co
utils.spec.ts1.34 kB
import { describe, it, expect } from 'vitest'; import * as utils from './utils.js'; describe('util functions', () => { it('camelCase function test', () => { expect(utils.camelCase('cheerio.js')).toBe('cheerioJs'); expect(utils.camelCase('camel-case-')).toBe('camelCase'); expect(utils.camelCase('__directory__')).toBe('_directory_'); expect(utils.camelCase('_one-two.three')).toBe('OneTwoThree'); }); it('cssCase function test', () => { expect(utils.cssCase('camelCase')).toBe('camel-case'); expect(utils.cssCase('jQuery')).toBe('j-query'); expect(utils.cssCase('neverSayNever')).toBe('never-say-never'); expect(utils.cssCase('CSSCase')).toBe('-c-s-s-case'); }); it('isHtml function test', () => { expect(utils.isHtml('<html>')).toBe(true); expect(utils.isHtml('\n<html>\n')).toBe(true); expect(utils.isHtml('#main')).toBe(false); expect(utils.isHtml('\n<p>foo<p>bar\n')).toBe(true); expect(utils.isHtml('dog<p>fox<p>cat')).toBe(true); expect(utils.isHtml('<p>fox<p>cat')).toBe(true); expect(utils.isHtml('\n<p>fox<p>cat\n')).toBe(true); expect(utils.isHtml('#<p>fox<p>cat#')).toBe(true); expect(utils.isHtml('<!-- comment -->')).toBe(true); expect(utils.isHtml('<!doctype html>')).toBe(true); expect(utils.isHtml('<123>')).toBe(false); }); });

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/appreply-co/mcp-appstore'

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