Skip to content

Commit edc8f6f

Browse files
committed
style: format test file
1 parent f16ab19 commit edc8f6f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/lib/__tests__/transaction-errors.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ describe("buildRevertMessage", () => {
3636
})
3737

3838
it("includes statusReason from rawDbRecord when present", () => {
39-
const msg = buildRevertMessage(fakeReceipt, { statusReason: "barter minReturn (100) < user required (200)" })
39+
const msg = buildRevertMessage(fakeReceipt, {
40+
statusReason: "barter minReturn (100) < user required (200)",
41+
})
4042
expect(msg).toContain("barter minReturn")
4143
})
4244

@@ -111,7 +113,9 @@ describe("getTransactionErrorMessage", () => {
111113
})
112114

113115
it("genuine network error surfaces the actual error after the prefix", () => {
114-
const err = new Error("HttpRequestError: Request to https://fastrpc.mev-commit.xyz failed (status 503)")
116+
const err = new Error(
117+
"HttpRequestError: Request to https://fastrpc.mev-commit.xyz failed (status 503)"
118+
)
115119
const msg = getTransactionErrorMessage(err)
116120
expect(msg.startsWith("Network error: ")).toBe(true)
117121
expect(msg).toContain("503")

0 commit comments

Comments
 (0)