ResistanceCalendar / resistance-calendar-api

API for Resistance Calendar events
MIT License
3 stars 7 forks source link

Add mongodb mocks and use to check EventSchema.save #60

Closed aaghevli closed 7 years ago

aaghevli commented 7 years ago

Added a mongodb unit testing framework called mockgoose and applied the change to test simple Event serialization. While at it I took it as an opportunity to hide the created_date and modified_date complexity from the API user.