0
0
Fork 0
Codesys-MCP-SP21-plus/tests/unit/print-config.test.ts
steel 729ba03593
Some checks failed
CI / build-and-test (18.x) (push) Has been cancelled
CI / build-and-test (20.x) (push) Has been cancelled
CI / build-and-test (22.x) (push) Has been cancelled
fixup msp-con
2026-08-03 17:45:08 +08:00

20 lines
580 B
TypeScript

import { printConfig } from '../../src/detect';
test('printConfig generates config for one install (exercises name generation)', () => {
const installs = [
{
installDir: 'C:\\Program Files\\CODESYS 3.5.21.10',
exePath: 'C:\\Program Files\\CODESYS 3.5.21.10\\CODESYS\\Common\\CODESYS.exe',
version: '3.5.21.10',
major: 3,
minor: 5,
sp: 21,
patch: 1,
profileName: 'CODESYS V3.5 SP21 Patch 1',
serverName: 'codesys-sp21-patch1',
},
];
const out = printConfig(installs);
expect(out).toContain('mcpServers');
});