Skip to content

Commit

Permalink
Fix operator precedence & typings
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFerr committed Aug 1, 2023
1 parent 8e306a8 commit 6eb9572
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ export function createTestClient(
const http = new HttpBackend();
const hsUrl = "https://localhost";
const accessToken = "s3cret";
const client = new MatrixClient(hsUrl, accessToken, storage, cryptoStoreType !== undefined ? new RustSdkCryptoStorageProvider(tmp.dirSync().name, cryptoStoreType) : null);
const client = new MatrixClient(hsUrl, accessToken, storage, (cryptoStoreType !== undefined) ? new RustSdkCryptoStorageProvider(tmp.dirSync().name, cryptoStoreType) : null);
(<any>client).userId = userId; // private member access
setRequestFn(http.requestFn);

return { http, hsUrl, accessToken, client };
}

const CRYPTO_STORE_TYPES = [StoreType.Sqlite];
const CRYPTO_STORE_TYPES: StoreType[] = [StoreType.Sqlite];

export async function testCryptoStores(fn: (StoreType) => Promise<void>): Promise<void> {
for (const st of CRYPTO_STORE_TYPES) {
Expand Down

0 comments on commit 6eb9572

Please sign in to comment.