MCPcopy
hub / github.com/MagicMirrorOrg/MagicMirror / server_functions_spec.js

File server_functions_spec.js

tests/unit/functions/server_functions_spec.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Tests use vi.spyOn on shared module objects (dns, undici).
2// vi.spyOn modifies the object property directly on the cached module instance, so it
3// is intercepted by server_functions.js regardless of the Module.prototype.require override
4// in vitest-setup.js. restoreAllMocks:true auto-restores spies, but may reuse the same

Callers

nothing calls this directly

Calls 3

replaceSecretPlaceholderFunction · 0.85
corsFunction · 0.85
getUserAgentFunction · 0.85

Tested by

no test coverage detected