a mock for IndexedDB
- in Blog, IndexedDB, Jasmine, Testing
- by Steve Zimmers
- March 25, 2014
- Comments Off on a mock for IndexedDB
I recently wrote an AngularJS service that wraps IndexedDB and needed to mock it when writing the unit tests.
We had the basics for such a mock in-house and I extended it for more in-depth testing. See the github page for the mock. The README contains examples of writing tests for such a service in Jasmine.