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.