discunit.js

0.2.1 • Public • Published

DiscUnit.js

Built With Love Code Style: Standard Discord.JS Gitter

An API for unit testing with JavaScript Discord bots.

yarn add --dev discunit.js

Example

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
)

Readme

Keywords

none

Package Sidebar

Install

npm i discunit.js

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

1.12 MB

Total Files

55

Last publish

Collaborators

  • megacode18