Skip to content

Commit

Permalink
Remove middlewareAccessible test that reapeared for some reason...
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwuarin committed Feb 4, 2017
1 parent 957f050 commit a81788e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/middleware_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,21 +388,6 @@ describe('Middleware', function() {
});
});


specify('Using send helper with "middlewareAccessible" gives access to that object in outgoing middleware', function(done) {
const neededInMiddleware = "some random text";

botmaster.use('outgoing', function(bot, message, middlewareAccessible, next) {
expect(middlewareAccessible).to.equal(neededInMiddleware);
done();
});

const bot = botmaster.getBots('messenger')[0];

bot.sendTextMessageTo('Party & Bullshit', config.messengerUserId,
{ middlewareAccessible: neededInMiddleware });
});

specify('Botmaster should not call incoming middleware', function(done) {
botmaster.use('incoming', function(bot, update, next) {
// something wrong as this should not happen
Expand Down

0 comments on commit a81788e

Please sign in to comment.