hub-mcp-config.test.mjs
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d
docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge
Human
20 hours ago
| 1 | import { readFileSync } from 'node:fs'; |
| 2 | import { fileURLToPath } from 'node:url'; |
| 3 | import { dirname, join } from 'node:path'; |
| 4 | import test from 'node:test'; |
| 5 | import assert from 'node:assert/strict'; |
| 6 | |
| 7 | const root = join(dirname(fileURLToPath(import.meta.url)), '..'); |
| 8 | const configPath = join(root, 'web/hub/config.js'); |
| 9 | const configSrc = readFileSync(configPath, 'utf8'); |
| 10 | |
| 11 | test('web/hub/config.js: hosted knowtation.store sets HUB_MCP_PUBLIC_URL for Copy Hub / KNOWTATION_MCP_URL', () => { |
| 12 | assert.match(configSrc, /knowtation\.store/); |
| 13 | assert.match(configSrc, /HUB_MCP_PUBLIC_URL/); |
| 14 | assert.match(configSrc, /mcp\.knowtation\.store/); |
| 15 | }); |
File History
1 commit
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d
docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge
Human
20 hours ago