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.
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