brightcove / hot-shots

Node.js client for statsd, DogStatsD, and Telegraf
MIT License
527 stars 135 forks source link

Add mocking in tests #63

Open bdeitte opened 6 years ago

bdeitte commented 6 years ago

Use sinon or something similar to test the parts that are hard to test right now, and to actually unit test. One good candidate to start testing here would be getDefaultRoute()

bdeitte commented 4 years ago

With this is place we could also test the sending of calls properly with cacheDns