Skip to content

Commit

Permalink
Fix tests handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbogle committed Jan 6, 2023
1 parent 8a8d1c6 commit d1bc340
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion tests/stake-entry/stake-reset-entry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ test("Stake again fail", async () => {
{ mintId },
]),
provider.wallet,
{ errorHandler: () => "" }
{
errorHandler: (e) => {
throw e;
},
}
)
).rejects.toThrow();
});
Expand Down
6 changes: 5 additions & 1 deletion tests/stake-entry/stake-unstake-ccs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ test("Stake again fail", async () => {
{ mintId },
]),
provider.wallet,
{ errorHandler: () => "" }
{
errorHandler: (e) => {
throw e;
},
}
)
).rejects.toThrow();
});
Expand Down
6 changes: 5 additions & 1 deletion tests/stake-entry/stake-unstake.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ test("Stake again fail", async () => {
{ mintId },
]),
provider.wallet,
{ errorHandler: () => "" }
{
errorHandler: (e) => {
throw e;
},
}
)
).rejects.toThrow();
});
Expand Down

0 comments on commit d1bc340

Please sign in to comment.