Skip to content

Commit 9fc557f

Browse files
committed
Fix typo
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 6436fbb commit 9fc557f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/unit/rust-crypto/rust-crypto.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ describe("RustCrypto", () => {
15311531
});
15321532

15331533
it("should throw an error if there is nothing to export", async () => {
1534-
await expect(rustCrypto.exportsSecretsBundle()).rejects.toThrow(
1534+
await expect(rustCrypto.exportSecretsBundle()).rejects.toThrow(
15351535
"The store doesn't contain any cross-signing keys",
15361536
);
15371537
});
@@ -1550,7 +1550,7 @@ describe("RustCrypto", () => {
15501550
},
15511551
};
15521552
await rustCrypto.importSecretsBundle(bundle);
1553-
await expect(rustCrypto.exportsSecretsBundle()).resolves.toEqual(expect.objectContaining(bundle));
1553+
await expect(rustCrypto.exportSecretsBundle()).resolves.toEqual(expect.objectContaining(bundle));
15541554
});
15551555
});
15561556
});

src/rust-crypto/rust-crypto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ export class RustCrypto extends TypedEventEmitter<RustCryptoEvents, RustCryptoEv
12581258
/**
12591259
* Implementation of {@link CryptoApi#exportSecretsBundle}.
12601260
*/
1261-
public async exportsSecretsBundle(): ReturnType<NonNullable<CryptoApi["exportSecretsBundle"]>> {
1261+
public async exportSecretsBundle(): ReturnType<NonNullable<CryptoApi["exportSecretsBundle"]>> {
12621262
const secretsBundle = await this.getOlmMachineOrThrow().exportSecretsBundle();
12631263
const secrets = secretsBundle.to_json();
12641264
secretsBundle.free();

0 commit comments

Comments
 (0)