Skip to main content
Glama

Backlog MCP Server

resetUnreadNotificationCount.test.ts1.08 kB
import { resetUnreadNotificationCountTool } from './resetUnreadNotificationCount.js'; import { jest, describe, it, expect } from '@jest/globals'; import type { Backlog } from 'backlog-js'; import { createTranslationHelper } from '../createTranslationHelper.js'; describe('resetUnreadNotificationCountTool', () => { const mockBacklog: Partial<Backlog> = { resetNotificationsMarkAsRead: jest .fn<() => Promise<any>>() .mockResolvedValue({ count: 0, }), }; const mockTranslationHelper = createTranslationHelper(); const tool = resetUnreadNotificationCountTool( mockBacklog as Backlog, mockTranslationHelper ); it('returns reset result as formatted JSON text', async () => { const result = await tool.handler({}); if (Array.isArray(result)) { throw new Error('Unexpected array result'); } expect(result.count).toEqual(0); }); it('calls backlog.resetNotificationsMarkAsRead', async () => { await tool.handler({}); expect(mockBacklog.resetNotificationsMarkAsRead).toHaveBeenCalled(); }); });

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/nulab/backlog-mcp-server'

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