Skip to main content
Glama
isDesignRelatedFile.test.ts1.07 kB
import { isDesignRelatedFile } from './isDesignRelatedFile' describe('isDesignRelatedFile', () => { it('should return true for PNG files', () => { expect(isDesignRelatedFile('mockup.png')).toBe(true) expect(isDesignRelatedFile('SCREENSHOT.PNG')).toBe(true) }) it('should return true for JPG files', () => { expect(isDesignRelatedFile('design.jpg')).toBe(true) expect(isDesignRelatedFile('UI.JPG')).toBe(true) }) it('should return true for PDF files', () => { expect(isDesignRelatedFile('specs.pdf')).toBe(true) expect(isDesignRelatedFile('DOCUMENT.PDF')).toBe(true) }) it('should return true for files with design-related names', () => { expect(isDesignRelatedFile('design_specs.txt')).toBe(true) expect(isDesignRelatedFile('ui_mockup.xml')).toBe(true) expect(isDesignRelatedFile('wireframe_v2.html')).toBe(true) }) it('should return false for unrelated files', () => { expect(isDesignRelatedFile('document.txt')).toBe(false) expect(isDesignRelatedFile('code.js')).toBe(false) expect(isDesignRelatedFile('data.json')).toBe(false) }) })

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/tbreeding/jira-mcp'

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