pushrax / node-rcon

A generic RCON protocol client for node.js
MIT License
133 stars 31 forks source link

Unit testing #39

Closed Syntro42 closed 2 years ago

Syntro42 commented 2 years ago

Hi! I would like to use this package in a discord bot I’m creating. Would there be any way to include unit tests with this package? I want to mimic responses I would get back from a Minecraft server for testing purposes. Thanks!

pushrax commented 2 years ago

A couple options:

This library doesn’t have any knowledge of what’s actually in an Rcon request or response, it just treats it as an opaque blob of data. So you’ll need to come up with the format of a valid response yourself.

Syntro42 commented 2 years ago

Thanks!