diff --git a/keygen/deposit_data.test.ts b/keygen/deposit_data.test.ts index b2dd7d9..bd9164a 100644 --- a/keygen/deposit_data.test.ts +++ b/keygen/deposit_data.test.ts @@ -17,8 +17,8 @@ Deno.test("DepositData", async (t) => { assertEquals(await verifyDepositData(keygenOptionsFixture.storagePath, fileName, depositData), true); }); - await t.step("Should throw an error when unable to save deposit data file", () => { - assertRejects( + await t.step("Should throw an error when unable to save deposit data file", async () => { + await assertRejects( () => saveDepositData(credentialsFixture, "/invalid/path/to/storage"), Error, "Unable to save deposit data file", @@ -29,7 +29,7 @@ Deno.test("DepositData", async (t) => { const { depositData, fileName } = await saveDepositData(credentialsFixture, keygenOptionsFixture.storagePath); await Deno.remove(`${resolve(keygenOptionsFixture.storagePath)}/${fileName}`); - assertRejects( + await assertRejects( () => verifyDepositData(keygenOptionsFixture.storagePath, fileName, depositData), Error, "Unable to read deposit data file", diff --git a/keygen/keystore.test.ts b/keygen/keystore.test.ts index bc92ed0..4b3e279 100644 --- a/keygen/keystore.test.ts +++ b/keygen/keystore.test.ts @@ -31,7 +31,7 @@ Deno.test("Keystore", async (t) => { const keystores = await createKeystores(credentialsFixture, keystorePassword); - assertRejects( + await assertRejects( () => saveSigningKeystores(keystores, storagePath), Error, "Unable to save signing keystores", @@ -47,7 +47,7 @@ Deno.test("Keystore", async (t) => { await Deno.remove(`${storagePath}/${savedKeystores[0].fileName}`); - assertRejects( + await assertRejects( () => verifySigningKeystores(storagePath, savedKeystores, keystorePassword), Error, `Unable to read signing keystore: ${savedKeystores[0].fileName}`,