discunit.js
v0.2.1
Published
An API for unit testing with JavaScript Discord bots.
Downloads
6
Readme
DiscUnit.js
An API for unit testing with JavaScript Discord bots.
yarn add --dev discunit.jsExample
const test = require('discunit.js')
const config = require('./secretConfig')
// Initialize your bot...
test(
t => {
t.messageContentEqualTo('pong')
this.client.channels.get(this.channel).send('ping')
// Awaits a response of "pong"
},
'Ping test',
...config
)