1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

Add missed methods to stub/memory store

and fix tests
This commit is contained in:
David Baker
2017-04-03 17:45:58 +01:00
parent 6a2465329a
commit b72b38b0a3
3 changed files with 20 additions and 1 deletions

View File

@@ -134,8 +134,9 @@ describe("MatrixClient", function() {
"getRoom", "getRooms", "getUser", "getSyncToken", "scrollback",
"save", "setSyncToken", "storeEvents", "storeRoom", "storeUser",
"getFilterIdByName", "setFilterIdByName", "getFilter", "storeFilter",
"getSyncAccumulator", "startup", "deleteAllData",
"getSyncAccumulator", "startup", "deleteAllData", "setSyncData",
].reduce((r, k) => { r[k] = expect.createSpy(); return r; }, {});
store.getSavedSync = expect.createSpy().andReturn(q(null));
client = new MatrixClient({
baseUrl: "https://my.home.server",
idBaseUrl: identityServerUrl,