mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 01:05:30 +08:00
fix: 增加@所有人 完善mac发送清理与端口回退
This commit is contained in:
1 parent
c50f8861a4
commit
aca103cb96
9 files changed
+737
-173
No files matched your search
@@ -225,6 +225,23 @@ describe('POST /api/v1/wechat/send', () => {
|
||||
expect(invalid.status).toBe(400)
|
||||
})
|
||||
|
||||
it('透传群聊 @ 全体目标', async () => {
|
||||
const response = await post({
|
||||
to: 'fixture-room@chatroom',
|
||||
isGroup: true,
|
||||
type: 'text',
|
||||
text: '@所有人 请查看这条测试消息',
|
||||
at: { 'notify@all': '所有人' }
|
||||
})
|
||||
|
||||
expect(response.status).toBe(200)
|
||||
expect(lastAction().content).toEqual({
|
||||
type: 'text',
|
||||
text: '@所有人 请查看这条测试消息',
|
||||
at: { 'notify@all': '所有人' }
|
||||
})
|
||||
})
|
||||
|
||||
it('拒绝格式错误的群聊 @ 成员映射', async () => {
|
||||
const response = await post({
|
||||
to: 'fixture-room@chatroom',
|
||||
|
||||
Reference in new issue
Block a user