diff --git a/mindspace-wechat-page-draft.test.mjs b/mindspace-wechat-page-draft.test.mjs index 7b1dc7f..88af310 100644 --- a/mindspace-wechat-page-draft.test.mjs +++ b/mindspace-wechat-page-draft.test.mjs @@ -50,6 +50,14 @@ const STARTUP_HTML = `创业路演

愿景

帮助每个团队拥有自己的 AI 大脑。

`; +const DAILY_NEWS_HTML = ` +每日新闻早报 · 2026年9月10日 + +

📰 每日新闻早报

+
2026年9月10日 · 星期三
+

示例热点

这是示例正文。

+
`; + test('convertGenericPageHtmlToWechatArticle extracts title and body', () => { const article = convertGenericPageHtmlToWechatArticle(SAMPLE_HTML, { pageTitle: '测试页面', @@ -73,9 +81,8 @@ test('resolvePagePublicUrl prefers publication slug url over empty workspace pat }); test('daily-news draft includes read original when publicUrl is present', () => { - const html = fs.readFileSync('public/dev/tkmind-upgrade-sep2026.html', 'utf8'); const article = buildDailyNewsWechatDraftArticle({ - html, + html: DAILY_NEWS_HTML, publicUrl: 'https://m.tkmind.cn/u/john/pages/tkmind-upgrade-sep2026', qrcodeImageUrl: 'https://mmbiz.qpic.cn/qrcode.png', }); diff --git a/release-gate/release-script.test.mjs b/release-gate/release-script.test.mjs index 148a3ff..7da0967 100644 --- a/release-gate/release-script.test.mjs +++ b/release-gate/release-script.test.mjs @@ -208,7 +208,7 @@ test('production canary keeps stable 8081 live and switches only after verified assert.ok(edgeSwitch > tunnelStart); assert.ok(fallbackProbe > edgeSwitch); assert.match(source, /restore_edge_to_stable/); - assert.match(source, /proxy_pass http:\/\/58\.38\.22\.103:8081;/); + assert.match(source, /proxy_pass http:\/\/10\.10\.0\.2:8081;/); assert.match(source, /proxy_pass http:\/\/127\.0\.0\.1:\$\{CANARY_TUNNEL_REMOTE_PORT\};/); assert.match(source, /nginx -t/); assert.match(source, /CANARY_PROXY_PORT=18082/);