How to use the hubot/src/message.TextMessage function in hubot

To help you get started, we’ve selected a few hubot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github StackStorm / hubot-stackstorm / tests / test-st2bot-setup.js View on Github external
it("responds when asked for help", function(done) {
    adapter.on("send", function(envelope, strings) {
      expect(strings[0]).to.be.a('string');
      done();
    });
    adapter.receive(new TextMessage(user, "Hubot help"));
  });