UNPKG

wickr-bedrock-bot

Version:

AWS Wickr's own Bedrock Bot

22 lines (16 loc) 557 B
const expect = require('chai').expect; const sinon = require('sinon'); const FakeWickr = require('./fakes/wickr'); const BedrockBot = require('../lib/bot'); describe('bot', function() { beforeEach(function() { this.bot = new BedrockBot(new FakeWickr(), "rbot"); }); it('instantiates without issue', function() { let wickr = new FakeWickr(); let bot = new BedrockBot(wickr, 'foo'); }); it('registers handlers', function() { expect(Object.keys(this.bot.handlers)).to.eql(["help", "echo"]); }); });