UNPKG

@tiberriver256/mcp-server-azure-devops

Version:

Azure DevOps reference server for the Model Context Protocol (MCP)

32 lines 1.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const get_me_1 = require("../get-me"); const test_helpers_1 = require("@/shared/test/test-helpers"); describe('getMe Integration', () => { let connection = null; beforeAll(async () => { // Get a real connection using environment variables connection = await (0, test_helpers_1.getTestConnection)(); }); test('should get authenticated user profile information', async () => { // Skip if no connection is available if ((0, test_helpers_1.shouldSkipIntegrationTest)() || !connection) { console.log('Skipping getMe integration test - no connection available'); return; } // Act - make a direct API call using Axios const result = await (0, get_me_1.getMe)(connection); // Assert on the actual response expect(result).toBeDefined(); expect(result.id).toBeDefined(); expect(typeof result.id).toBe('string'); expect(result.displayName).toBeDefined(); expect(typeof result.displayName).toBe('string'); expect(result.displayName.length).toBeGreaterThan(0); // Email should be defined, a string, and not empty expect(result.email).toBeDefined(); expect(typeof result.email).toBe('string'); expect(result.email.length).toBeGreaterThan(0); }); }); //# sourceMappingURL=feature.spec.int.js.map