import test from 'node:test'; import assert from 'node:assert/strict'; import fs from 'node:fs'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { parseSystemJson } from '../integrations/cisco-mpp-phone/systemJson.js'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const FIXTURE = fs.readFileSync(path.join(__dirname, 'fixtures/mpp/system-782.json'), 'utf8'); test('parseSystemJson: extracts web server and proxy', () => { const parsed = parseSystemJson(FIXTURE); assert.equal(parsed.webServer, 'Yes'); assert.equal(parsed.proxyMode, 'Off'); assert.equal(parsed.dot1xCertSelect, 'Manufacturing installed'); });