hub-copy-env.test.mjs
sha256:c2dbf04d56308f3bbf2d06e6d2eb022b8948b1e827195fe525a44e5e18d5f9c0
feat(auth): Phase B Connect cloud agent (RFC 8628) + Hermes…
Human
minor
⚠ breaking
12 days ago
| 1 | /** |
| 2 | * Ensures the Hub "Copy URL, token & vault" block stays short (one doc link, not a wall of # comments). |
| 3 | */ |
| 4 | import { readFileSync } from 'node:fs'; |
| 5 | import { fileURLToPath } from 'node:url'; |
| 6 | import { dirname, join } from 'node:path'; |
| 7 | import test from 'node:test'; |
| 8 | import assert from 'node:assert/strict'; |
| 9 | |
| 10 | const root = join(dirname(fileURLToPath(import.meta.url)), '..'); |
| 11 | const hubPath = join(root, 'web/hub/hub.js'); |
| 12 | const hubSrc = readFileSync(hubPath, 'utf8'); |
| 13 | |
| 14 | test('web/hub/hub.js: copy block uses INTEGRATION_DOC_URL and a short curl header hint (no long REST/MCP essay)', () => { |
| 15 | assert.match(hubSrc, /INTEGRATION_DOC_URL/); |
| 16 | assert.doesNotMatch(hubSrc, /# Hub REST API \(scripts/); |
| 17 | assert.match(hubSrc, /Example curl/); |
| 18 | assert.match(hubSrc, /Authorization: Bearer/); |
| 19 | }); |
File History
1 commit
sha256:93bcf8f9bd56d8c5b9339f4ec73b9ebd66571398d56262d38eedc2cfa9db9882
fix(test): align Band B landing assertion with desktop MCP …
Human
12 days ago