a mock for IndexedDB
- in Blog, IndexedDB, Jasmine, Testing
- by Steve Zimmers
- March 25, 2014
- Comments Off on a mock for IndexedDB
Need Flex Migration Help?
- Adobe ends Flash player support in 2020
- Flex apps will no longer function
- We can help migrate your app
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.