code: function resetIndexedDBMock () {
  	mockIndexedDBItems.length = 0;
  
  	mockIndexedDB_openDBSuccess = false;
  	mockIndexedDB_openDBFail = false;
  	mockIndexedDB_openDBAbort = false;
  	mockIndexedDB_openDBBlocked = false;
  	mockIndexedDB_openDBUpgradeNeeded = false;
  
  	mockIndexedDB_openCursorSuccess = false;
  	mockIndexedDB_openCursorFail = false;
  	mockIndexedDB_cursorReadingDone = false;
  
  	mockIndexedDB_saveSuccess = false;
  	mockIndexedDB_saveFail = false;
  	mockIndexedDB_deleteSuccess = false;
  	mockIndexedDB_deleteFail = false;
  	mockIndexedDB_clearSuccess = false;
  	mockIndexedDB_clearFail = false;
  	mockIndexedDB_createStoreSuccess = false;
  	mockIndexedDB_createStoreFail = false;
  	mockIndexedDB_deleteDBSuccess = false;
  	mockIndexedDB_deleteDBFail = false;
  
  	mockIndexedDB_cursorResultsIndex = 0;
  
  	mockIndexedDBTestFlags.canOpenDB = true;
  	mockIndexedDBTestFlags.openDBShouldBlock = false;
  	mockIndexedDBTestFlags.openDBShouldAbort = false;
    mockIndexedDBTestFlags.upgradeNeeded = false;
  	mockIndexedDBTestFlags.canReadDB = true;
  	mockIndexedDBTestFlags.canSave = true;
  	mockIndexedDBTestFlags.canDelete = true;
    mockIndexedDBTestFlags.canClear = true;
  	mockIndexedDBTestFlags.canCreateStore = true;
  	mockIndexedDBTestFlags.canDeleteDB = true;
  
  	clearTimeout(mockIndexedDB_openDBTimer);
  	clearTimeout(mockIndexedDB_createObjectStoreTimer);
  	clearTimeout(mockIndexedDB_cursorContinueTimer);
  	clearTimeout(mockIndexedDB_storeAddTimer);
  	clearTimeout(mockIndexedDB_storeDeleteTimer);
  	clearTimeout(mockIndexedDB_storeClearTimer);
  	clearTimeout(mockIndexedDB_storeOpenCursorTimer);
  	clearTimeout(mockIndexedDB_deleteDBTimer);
  }
docs: call this in beforeEach() to reset the mock