Appease the tests

This commit is contained in:
Travis Ralston 2020-05-25 16:14:51 -06:00
parent e5c2d17015
commit 1c9b5eb42d

View file

@ -120,7 +120,7 @@ class _MatrixClientPeg implements IMatrixClientPeg {
initialSyncLimit: 20, initialSyncLimit: 20,
}; };
private matrixClient: MatrixClient; private matrixClient: MatrixClient = null;
private justRegisteredUserId: string; private justRegisteredUserId: string;
// the credentials used to init the current client object. // the credentials used to init the current client object.
@ -157,7 +157,7 @@ class _MatrixClientPeg implements IMatrixClientPeg {
public replaceUsingCreds(creds: IMatrixClientCreds): void { public replaceUsingCreds(creds: IMatrixClientCreds): void {
this.currentClientCreds = creds; this.currentClientCreds = creds;
this._createClient(creds); this.createClient(creds);
} }
public async assign(): Promise<any> { public async assign(): Promise<any> {
@ -245,7 +245,7 @@ class _MatrixClientPeg implements IMatrixClientPeg {
return matches[1]; return matches[1];
} }
private _createClient(creds: IMatrixClientCreds): void { private createClient(creds: IMatrixClientCreds): void {
// TODO: Make these opts typesafe with the js-sdk // TODO: Make these opts typesafe with the js-sdk
const opts = { const opts = {
baseUrl: creds.homeserverUrl, baseUrl: creds.homeserverUrl,