diff --git a/src/matrix/Session.js b/src/matrix/Session.js index 3c2f0e8c..708efd29 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -426,7 +426,7 @@ export function tests() { function createStorageMock(session, pendingEvents = []) { return { readTxn() { - return Promise.resolve({ + return { session: { get(key) { return Promise.resolve(session[key]); @@ -442,7 +442,7 @@ export function tests() { return Promise.resolve([]); } } - }); + }; }, storeNames: {} };