mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-11 11:43:17 +08:00
fix: remember direct recipients for connection tests
This commit is contained in:
parent
fb61c4235f
commit
3ac70a7c65
34 changed files with 397 additions and 178 deletions
|
|
@ -40,7 +40,10 @@ test('QQ client normalizes and presents connection-test outcomes', () => {
|
|||
assert.deepEqual(unavailable.testMessage, {
|
||||
sent: false, code: 'test-target-unavailable',
|
||||
});
|
||||
assert.match(connectionTestFeedback(unavailable.testMessage), /\/status/);
|
||||
assert.equal(
|
||||
connectionTestFeedback(unavailable.testMessage),
|
||||
'连接检查完成。机器人尚未收到可用于测试的私聊消息。',
|
||||
);
|
||||
|
||||
const invalid = normalizeSnapshot({
|
||||
bots: [], testMessage: { sent: false, code: 'private-provider-error' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue