codersforcauses / p2s-backend

p2s rugbyworks backend
MIT License
7 stars 0 forks source link

Add example test #167

Closed noobling closed 4 years ago

noobling commented 5 years ago

The test probably doesn't work but take a look at how writing tests improve your code. It forced you to split your function out into two logical pieces a generic function which can be easily tested and mocked out with any data and a feather's specific function that is tied to feathers and maybe a bit harder to test.

Sorry about prettier