dwhitacre / easy-twitch-bot

Extendable PnP rule based twitch bot framework
Apache License 2.0
1 stars 0 forks source link

add better test coverage #1

Open dwhitacre opened 5 years ago

dwhitacre commented 5 years ago

current the tests only cover the main classes, but not the integration between classes. for example adding a a new rule, the tests cover the fact the this._rules gets updated, but doesn't cover if this.twitchClient.commands and this.hapiServer.routes gets updated.

with this, probably should add a code coverage tool. i've used nyc before, so thats an option, but whatever works.