The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/apps/tests/server/managers/AppOutboundCommunicationPro...

23 lines
827 B

import * as assert from 'node:assert';
import { describe, it } from 'node:test';
import type { IOutboundMessageProviders } from '@rocket.chat/apps-engine/definition/outboundCommunication';
import type { ProxiedApp } from '../../../src/server/ProxiedApp';
import { OutboundMessageProvider } from '../../../src/server/managers/AppOutboundCommunicationProvider';
describe('OutboundMessageProvider', () => {
it('ensureAppOutboundCommunicationProviderManager', () => {
const mockApp = {} as ProxiedApp;
assert.doesNotThrow(() => new OutboundMessageProvider(mockApp, {} as IOutboundMessageProviders));
const aocp = new OutboundMessageProvider(mockApp, {} as IOutboundMessageProviders);
assert.strictEqual(aocp.isRegistered, false);
aocp.setRegistered(true);
assert.strictEqual(aocp.isRegistered, true);
});
});