mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 04:13:17 +08:00
fix(feishu): complete permissions repair flow
This commit is contained in:
parent
1a72e5491f
commit
10ca7eec2c
22 changed files with 574 additions and 392 deletions
|
|
@ -183,6 +183,9 @@ test('Feishu image loading maps the missing message scope to an actionable error
|
|||
await assert.rejects(message.images[0].load({ maxBytes: 1024 }), (error) => {
|
||||
assert.equal(error.code, 'feishu-image-permission-required');
|
||||
assert.match(error.userMessage, /im:message:readonly/);
|
||||
assert.match(error.userMessage, /\/repair/);
|
||||
assert.match(error.userMessage, /插件页面/);
|
||||
assert.match(error.userMessage, /补全权限/);
|
||||
assert.match(error.userMessage, /发布新版本/);
|
||||
assert.equal(error.cause, providerError);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue