Skip to content

Commit 6eb9572

Browse files
committed
Fix operator precedence & typings
1 parent 8e306a8 commit 6eb9572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/TestUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ export function createTestClient(
4040
const http = new HttpBackend();
4141
const hsUrl = "https://localhost";
4242
const accessToken = "s3cret";
43-
const client = new MatrixClient(hsUrl, accessToken, storage, cryptoStoreType !== undefined ? new RustSdkCryptoStorageProvider(tmp.dirSync().name, cryptoStoreType) : null);
43+
const client = new MatrixClient(hsUrl, accessToken, storage, (cryptoStoreType !== undefined) ? new RustSdkCryptoStorageProvider(tmp.dirSync().name, cryptoStoreType) : null);
4444
(<any>client).userId = userId; // private member access
4545
setRequestFn(http.requestFn);
4646

4747
return { http, hsUrl, accessToken, client };
4848
}
4949

50-
const CRYPTO_STORE_TYPES = [StoreType.Sqlite];
50+
const CRYPTO_STORE_TYPES: StoreType[] = [StoreType.Sqlite];
5151

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

0 commit comments

Comments
 (0)