mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 17:25:15 +08:00
feat: 扩展中心支持多模态消息、HTML 渲染、一级导航与应用内通知
This commit is contained in:
1 parent
b20e514c90
commit
4ea73c3414
63 files changed
+8360
-644
No files matched your search
@@ -16,7 +16,7 @@ const packagedRoot = CANDIDATES.map((relative) => path.join(process.cwd(), relat
|
||||
)
|
||||
|
||||
describe.skipIf(!packagedRoot)('打包后的模板资源', () => {
|
||||
it('产物目录自带三个模板与索引', async () => {
|
||||
it('产物目录自带四个模板与索引', async () => {
|
||||
const catalog = new ExtensionTemplateCatalog({
|
||||
templateRoot: packagedRoot as string,
|
||||
getRecord: () => undefined,
|
||||
@@ -30,7 +30,8 @@ describe.skipIf(!packagedRoot)('打包后的模板资源', () => {
|
||||
expect(list.map((item) => item.template.templateId).sort()).toEqual([
|
||||
'douyin-sender',
|
||||
'group-chat-bot',
|
||||
'keyword-bot'
|
||||
'keyword-bot',
|
||||
'morning-digest'
|
||||
])
|
||||
// 资源自包含:索引里的 zip 就在同一目录,且哈希匹配(damaged 会暴露不一致)。
|
||||
expect(list.every((item) => item.state !== 'damaged')).toBe(true)
|
||||
@@ -45,7 +46,7 @@ describe.skipIf(!packagedRoot)('打包后的模板资源', () => {
|
||||
probePython: () => '/usr/bin/python3',
|
||||
probeChrome: () => '/usr/bin/chrome'
|
||||
})
|
||||
for (const templateId of ['keyword-bot', 'group-chat-bot', 'douyin-sender']) {
|
||||
for (const templateId of ['keyword-bot', 'group-chat-bot', 'morning-digest', 'douyin-sender']) {
|
||||
const resolved = await catalog.resolveZip(templateId)
|
||||
expect(fs.existsSync(resolved.path)).toBe(true)
|
||||
expect(resolved.template.sha256).toMatch(/^[a-f0-9]{64}$/)
|
||||
|
||||
Reference in new issue
Block a user