Skip to content

Commit

Permalink
test: fix revert assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbate committed Apr 4, 2024
1 parent f0ae3ed commit 12e725c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fuel-gauge/src/experimental-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('Experimental Contract', () => {

it('extracts str slice from revert', async () => {
await expect(contractInstance.functions.test_revert().call()).rejects.toThrow(
/The script reverted with reason RequireFailed/
'The transaction reverted because a "require" statement has thrown "This is a revert error".'
);
});
});

0 comments on commit 12e725c

Please sign in to comment.