hub-mcp-config.test.mjs
15 lines 639 B
Raw
sha256:c2dbf04d56308f3bbf2d06e6d2eb022b8948b1e827195fe525a44e5e18d5f9c0 feat(auth): Phase B Connect cloud agent (RFC 8628) + Hermes… Human minor ⚠ breaking 11 days 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:93bcf8f9bd56d8c5b9339f4ec73b9ebd66571398d56262d38eedc2cfa9db9882 fix(test): align Band B landing assertion with desktop MCP … Human 11 days ago