Mock a response object

This commit is contained in:
Richard Lewis 2021-07-08 00:27:54 +01:00
parent 26ec4853e7
commit 5d5caa3b35

View file

@ -135,7 +135,7 @@ export class HomeServerApi {
return this._post(`/rooms/${encodeURIComponent(roomId)}/receipt/${encodeURIComponent(receiptType)}/${encodeURIComponent(eventId)}`, return this._post(`/rooms/${encodeURIComponent(roomId)}/receipt/${encodeURIComponent(receiptType)}/${encodeURIComponent(eventId)}`,
{}, {}, options); {}, {}, options);
} }
return Promise.resolve(() => {}); return {response: () => Promise.resolve(null)};
} }
passwordLogin(username, password, initialDeviceDisplayName, options = null) { passwordLogin(username, password, initialDeviceDisplayName, options = null) {