mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 09:15:41 +08:00
feat: 发送支持群聊@成员
生命周期整理 清理残留整理 完善skill
This commit is contained in:
1 parent
804466aad8
commit
5d4ba73771
28 files changed
+1214
-103
No files matched your search
@@ -100,6 +100,25 @@ describe('WechatActionGateway', () => {
|
||||
])
|
||||
})
|
||||
|
||||
it('preserves the native mention map when forwarding a manual text action', async () => {
|
||||
const gateway = createGateway()
|
||||
await gateway.execute({
|
||||
origin: 'user_manual',
|
||||
purpose: 'manual_text',
|
||||
triggerType: 'user',
|
||||
recipient: { type: 'group', id: 'fixture-room@chatroom' },
|
||||
content: { type: 'text', text: '早上好', at: { wxid_fixture: '测试成员' } }
|
||||
})
|
||||
|
||||
expect(mocks.sender.send).toHaveBeenCalledWith({
|
||||
type: 'text',
|
||||
to: 'fixture-room@chatroom',
|
||||
isGroup: true,
|
||||
text: '早上好',
|
||||
at: { wxid_fixture: '测试成员' }
|
||||
})
|
||||
})
|
||||
|
||||
it('deduplicates the same leave event across repeated execution calls', async () => {
|
||||
const gateway = createGateway()
|
||||
const first = await leaveNotificationAction(gateway)
|
||||
|
||||
Reference in new issue
Block a user