hub-copy-env.test.mjs
19 lines 790 B
Raw
sha256:7fe782411f3a68b39f17777b274349b30752365c13438b26bfd602c687de2c65 feat(web): rebrand Parentier family to Ourware on landing Human minor ⚠ breaking 20 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:7fe782411f3a68b39f17777b274349b30752365c13438b26bfd602c687de2c65 feat(web): rebrand Parentier family to Ourware on landing Human minor 20 days ago