Brewskey / spark-server

An API compatible open source server for interacting with devices speaking the spark-protocol
https://www.particle.io/
GNU Affero General Public License v3.0
54 stars 27 forks source link

Finish writing tests for all endpoints #81

Open jlkalberer opened 7 years ago

jlkalberer commented 7 years ago

I don't think that we've covered them all. We need to finish some in DeviceController as well

I also wonder if we should be using a real mocking framework instead of hacking some mocked objects..? We could write better tests with the mocked objects like checking if functions had been called or getting rid of the serialized functions -- we can make repositories return fake data.

jlkalberer commented 7 years ago

You can ignore the products endpoint for now.