forked from howdyai/botkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBotkit.test.js
33 lines (28 loc) · 1.13 KB
/
Botkit.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict';
let botkit;
jest.mock('../../lib/CoreBot', () => 'corebot');
jest.mock('../../lib/SlackBot', () => 'slackbot');
jest.mock('../../lib/Facebook', () => 'facebook');
jest.mock('../../lib/TwilioIPMBot', () => 'twilioipm');
jest.mock('../../lib/TwilioSMSBot', () => 'twiliosms');
jest.mock('../../lib/BotFramework', () => 'botframework');
jest.mock('../../lib/CiscoSparkbot', () => 'spark');
jest.mock('../../lib/ConsoleBot', () => 'console');
jest.mock('../../lib/Web', () => 'anywhere');
jest.mock('../../lib/Teams', () => 'teams');
beforeEach(() => {
jest.clearAllMocks();
botkit = require('../../lib/Botkit');
});
test('exports bot interfaces', () => {
expect(botkit.core).toBe('corebot');
expect(botkit.slackbot).toBe('slackbot');
expect(botkit.facebookbot).toBe('facebook');
expect(botkit.twilioipmbot).toBe('twilioipm');
expect(botkit.twiliosmsbot).toBe('twiliosms');
expect(botkit.botframeworkbot).toBe('botframework');
expect(botkit.sparkbot).toBe('spark');
expect(botkit.teamsbot).toBe('teams');
expect(botkit.consolebot).toBe('console');
expect(botkit.anywhere).toBe('anywhere');
});