diff --git a/tests/stake-entry/stake-reset-entry.test.ts b/tests/stake-entry/stake-reset-entry.test.ts index db1ba9b3..928b5921 100644 --- a/tests/stake-entry/stake-reset-entry.test.ts +++ b/tests/stake-entry/stake-reset-entry.test.ts @@ -134,7 +134,11 @@ test("Stake again fail", async () => { { mintId }, ]), provider.wallet, - { errorHandler: () => "" } + { + errorHandler: (e) => { + throw e; + }, + } ) ).rejects.toThrow(); }); diff --git a/tests/stake-entry/stake-unstake-ccs.test.ts b/tests/stake-entry/stake-unstake-ccs.test.ts index de7b4db2..6e589c8a 100644 --- a/tests/stake-entry/stake-unstake-ccs.test.ts +++ b/tests/stake-entry/stake-unstake-ccs.test.ts @@ -147,7 +147,11 @@ test("Stake again fail", async () => { { mintId }, ]), provider.wallet, - { errorHandler: () => "" } + { + errorHandler: (e) => { + throw e; + }, + } ) ).rejects.toThrow(); }); diff --git a/tests/stake-entry/stake-unstake.test.ts b/tests/stake-entry/stake-unstake.test.ts index 49f93297..53eb53e0 100644 --- a/tests/stake-entry/stake-unstake.test.ts +++ b/tests/stake-entry/stake-unstake.test.ts @@ -137,7 +137,11 @@ test("Stake again fail", async () => { { mintId }, ]), provider.wallet, - { errorHandler: () => "" } + { + errorHandler: (e) => { + throw e; + }, + } ) ).rejects.toThrow(); });