Skellington-Closet / slack-mock

A Slack API mocker for Slack bot integration tests.
MIT License
64 stars 15 forks source link

Is there an error for the example of rtm#send method? #30

Open kkalavantavanich opened 6 years ago

kkalavantavanich commented 6 years ago

The method signature of rtm#send in src/mocker/rtm.js is

rtm.send = function (token, message)

While in the english README, rtm#send is called with:

slackMock.rtm.send({token: 'abc123', type: 'message', channel: 'mockChannel', user: 'usr', text: 'hello'})

Is this an error in the example?