mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-14 02:03:18 +08:00
Add Telegram and Discord IM channels
This commit is contained in:
parent
7123fce47a
commit
cb74e1c4c7
66 changed files with 8579 additions and 1910 deletions
|
|
@ -57,6 +57,21 @@ test('Host plugin registers the Weixin RPC channel as loopback-only', async () =
|
|||
assert.deepEqual(registration.options, { authority: 'loopback' });
|
||||
});
|
||||
|
||||
test('Host plugin opts the Weixin RPC channel into trusted Host authorities', async () => {
|
||||
let registration;
|
||||
const ctx = {
|
||||
connection: { rpc: { handle: (channel, handler, options) => {
|
||||
registration = { channel, handler, options };
|
||||
return async () => {};
|
||||
} } },
|
||||
};
|
||||
await apply(ctx, {
|
||||
controller: controllerFixture(),
|
||||
rpcAuthority: 'trusted-host',
|
||||
});
|
||||
assert.deepEqual(registration.options, { authority: 'trusted-host' });
|
||||
});
|
||||
|
||||
test('RPC returns QR data and verification states without exposing secret-shaped fields', async () => {
|
||||
const controller = controllerFixture();
|
||||
const handler = createWeixinRpcHandler(controller, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue