mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
oauth-session-request.test.ts regexed main.ts source text (extracting the fetchJsonViaOauthSession function body and matching regexes against it) to check Electron net.request doesn't set the forbidden Content-Length header and does call request.write(body). That behavior is already covered for real by oauth-net-request.test.ts, which imports the actual serializeJsonBody/setJsonRequestHeaders helpers from oauth-net-request.ts and asserts on a mock request object's setHeader calls -- it only needed its relative import corrected to include the .ts extension (Node's ESM loader doesn't resolve extensionless relative specifiers). Removed the now-fully-superseded oauth-session-request.test.ts and its dangling package.json wiring. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||