Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rictorlome committed Dec 17, 2024
1 parent 2fb8039 commit 9a26f47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('verifyAssetsConsumed', () => {
// Mock the verifyAssetsConsumed method to throw an error
// Testing for this function can be found in the spendHelper.test.ts file
spendHelper.verifyAssetsConsumed = vi.fn(() => {
throw new Error('Test error');
return new Error('Test error');
});

expect(() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('verifyGasUsage', () => {
// Mock the verifyGasUsage method to throw an error
// Testing for this function can be found in the spendHelper.test.ts file
spendHelper.verifyGasUsage = vi.fn(() => {
throw new Error('Test error');
return new Error('Test error');
});

expect(() =>
Expand Down

0 comments on commit 9a26f47

Please sign in to comment.