Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Update some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplantzzz committed Oct 22, 2020
1 parent df69cc0 commit b35a476
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/contract-tests/test/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,19 +310,19 @@ describe("Client appends errors (vmErrorsOnRPCResponse)", function () {
assert.fail();
} catch (e) {
assert(
e.stack.includes("Error: invalid number value ("),
e.stack.includes("Error: invalid BigNumber string"),
"Should keep hijacked error description"
);
assert(
e.stack.includes("/test/errors.js:"),
"Should include original stack details"
);
assert(
e.hijackedStack.includes("Error: invalid number value ("),
e.hijackedStack.includes("Error: invalid BigNumber string"),
"Should preserve hijacked error message"
);
assert(
e.hijackedStack.includes("/utils/abi-coder.js:"),
e.hijackedStack.includes("/lib/abi-coder.js:"),
"Should preserve hijacked stack details"
);
}
Expand Down

0 comments on commit b35a476

Please sign in to comment.