Skip to content

Commit 9a26f47

Browse files
committed
fix: tests
1 parent 2fb8039 commit 9a26f47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vms/pvm/etna-builder/spend-reducers/verifyAssetsConsumed.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('verifyAssetsConsumed', () => {
2222
// Mock the verifyAssetsConsumed method to throw an error
2323
// Testing for this function can be found in the spendHelper.test.ts file
2424
spendHelper.verifyAssetsConsumed = vi.fn(() => {
25-
throw new Error('Test error');
25+
return new Error('Test error');
2626
});
2727

2828
expect(() =>

src/vms/pvm/etna-builder/spend-reducers/verifyGasUsage.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('verifyGasUsage', () => {
2222
// Mock the verifyGasUsage method to throw an error
2323
// Testing for this function can be found in the spendHelper.test.ts file
2424
spendHelper.verifyGasUsage = vi.fn(() => {
25-
throw new Error('Test error');
25+
return new Error('Test error');
2626
});
2727

2828
expect(() =>

0 commit comments

Comments
 (0)