Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
d9f662c06e
|
@ -71,6 +71,7 @@ describe('loading:', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async function () {
|
afterEach(async function () {
|
||||||
|
console.log('loading: afterEach');
|
||||||
if (parentDiv) {
|
if (parentDiv) {
|
||||||
ReactDOM.unmountComponentAtNode(parentDiv);
|
ReactDOM.unmountComponentAtNode(parentDiv);
|
||||||
parentDiv.remove();
|
parentDiv.remove();
|
||||||
|
|
|
@ -38,12 +38,12 @@ export function deleteIndexedDB(dbName) {
|
||||||
const req = window.indexedDB.deleteDatabase(dbName);
|
const req = window.indexedDB.deleteDatabase(dbName);
|
||||||
|
|
||||||
req.onblocked = () => {
|
req.onblocked = () => {
|
||||||
console.log(`can't yet delete indexeddb because it is open elsewhere`);
|
console.log(`can't yet delete indexeddb ${dbName} because it is open elsewhere`);
|
||||||
};
|
};
|
||||||
|
|
||||||
req.onerror = (ev) => {
|
req.onerror = (ev) => {
|
||||||
reject(new Error(
|
reject(new Error(
|
||||||
"unable to delete indexeddb: " + ev.target.error,
|
`unable to delete indexeddb ${dbName}: ${ev.target.error}`,
|
||||||
));
|
));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -51,5 +51,8 @@ export function deleteIndexedDB(dbName) {
|
||||||
console.log(`Removed indexeddb instance: ${dbName}`);
|
console.log(`Removed indexeddb instance: ${dbName}`);
|
||||||
resolve();
|
resolve();
|
||||||
};
|
};
|
||||||
|
}).catch((e) => {
|
||||||
|
console.error(`Error removing indexeddb instance ${dbName}: ${e}`);
|
||||||
|
throw e;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue