Skip to main content
Glama
IACRSearcher.test.ts1.13 kB
/** * IACRSearcher Platform Tests * Tests for IACR ePrint cryptography archive */ import { describe, it, expect, beforeEach } from '@jest/globals'; import { IACRSearcher } from '../../src/platforms/IACRSearcher.js'; describe('IACRSearcher', () => { let searcher: IACRSearcher; beforeEach(() => { searcher = new IACRSearcher(); }); describe('getCapabilities', () => { it('should return correct capabilities', () => { const caps = searcher.getCapabilities(); expect(caps.search).toBe(true); expect(caps.download).toBe(true); expect(caps.fullText).toBe(true); expect(caps.requiresApiKey).toBe(false); }); }); describe('search options', () => { it('should support fetchDetails option', () => { expect(searcher.search).toBeDefined(); }); }); describe('downloadPdf', () => { it('should download from ePrint', () => { expect(searcher.downloadPdf).toBeDefined(); }); }); describe('IACR ID handling', () => { it('should handle ePrint IDs (YYYY/NNN)', () => { // e.g., 2023/123 expect(searcher).toBeDefined(); }); }); });

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/Dianel555/paper-search-mcp-nodejs'

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