Skip to content

Commit

Permalink
Merge pull request #1 from howdyai/master
Browse files Browse the repository at this point in the history
Update from origin
  • Loading branch information
patrinhani-ciandt authored Jul 28, 2017
2 parents b4bbee7 + e705125 commit 3fd9d22
Show file tree
Hide file tree
Showing 55 changed files with 1,147 additions and 136 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ examples/db_team_bot/
*/.DS_Store
.env
.idea
.vscode/settings.json
.vscode
coverage
46 changes: 0 additions & 46 deletions .vscode/launch.json

This file was deleted.

2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ possible with your report. If you can, please include:
* Create, or link to an existing issue identifying the need driving your PR request. The issue can contain more details of the need for the PR as well as host debate as to which course of action the PR will take that will most serve the common good.
* Include screenshots and animated GIFs in your pull request whenever possible.
* Follow the JavaScript coding style with details from `.jscsrc` and `.editorconfig` files and use necessary plugins for your text editor.
* Run `npm test` before submitting and fix any issues.
* Add tests to cover any new functionality. Add and/or update tests for any updates to the code.
* Write documentation in [Markdown](https://daringfireball.net/projects/markdown).
* Please follow, [JSDoc](http://usejsdoc.org/) for proper documentation.
* Use short, present tense commit messages. See [Commit Message Styleguide](#git-commit-messages).
Expand Down
28 changes: 28 additions & 0 deletions __test__/lib/Botkit.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'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');

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.consolebot).toBe('console');
});
Loading

0 comments on commit 3fd9d22

Please sign in to comment.