// Regression guard for the DECT-safe multicast payload constant. // // The whole IGMP-fix design is predicated on a single hardcoded PUT // body — no read-then-mutate, no per-store branching. If someone // accidentally flips one of these booleans (or adds an override to // the array), every remediation click starts silently corrupting // production Meraki config. This one test makes that impossible to // merge without also updating the test, which forces a review. import test from 'node:test'; import assert from 'node:assert/strict'; import { DECT_SAFE_MULTICAST_PAYLOAD } from '../commands/igmpFix.js'; test('DECT_SAFE_MULTICAST_PAYLOAD has the exact expected shape', () => { assert.deepEqual(DECT_SAFE_MULTICAST_PAYLOAD, { defaultSettings: { igmpSnoopingEnabled: false, floodUnknownMulticastTrafficEnabled: true, }, overrides: [], }); }); test('DECT_SAFE_MULTICAST_PAYLOAD is frozen so nothing can mutate it at runtime', () => { assert.equal(Object.isFrozen(DECT_SAFE_MULTICAST_PAYLOAD), true); });