Files
memind/wechat/daily-knowledge-library.test.mjs
T
john 830f8a4011
Memind CI / Test, build, and release guards (push) Successful in 5m36s
feat(wechat): add service-account push subscriptions and news morning cover delivery
Ship the 10-item numeric subscription loop on WeChat MP, wire schedule delivery
for news/weather/quote/health/finance/tech/knowledge/night/surprise pushes, and
extend news morning draft cover generation plus a one-shot draft push script.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-20 16:15:15 +08:00

16 lines
507 B
JavaScript

import test from 'node:test';
import assert from 'node:assert/strict';
import { formatDailyKnowledgeDeliveryText } from './daily-knowledge-library.mjs';
test('formatDailyKnowledgeDeliveryText renders knowledge card', () => {
const text = formatDailyKnowledgeDeliveryText({
userId: 'user-knowledge',
timezone: 'Asia/Shanghai',
now: Date.parse('2026-09-20T12:00:00+08:00'),
});
assert.match(text, /^📚 每日知识/u);
assert.match(text, /【/u);
assert.match(text, /取消6/u);
});