Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jackstar12 committed Jan 9, 2025
1 parent efba188 commit 06cd04c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/components/RefundButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ const RefundButton = (props: {
</Show>
}>
<Switch>
<Match when={lockupTransaction.state === "ready" || lockupTransaction.state == "unresolved"}>
<Match
when={
lockupTransaction.state === "ready" ||
lockupTransaction.state == "unresolved"
}>
<Show when={timeoutEta() > 0 || timeoutBlockheight() > 0}>
<RefundEta
timeoutEta={timeoutEta}
Expand Down
9 changes: 5 additions & 4 deletions tests/pages/RefundExternal.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { render, screen } from "@solidjs/testing-library";
import { userEvent } from "@testing-library/user-event";

import i18n from "../../src/i18n/i18n";
import { TestComponent, contextWrapper, globalSignals } from "../helper";
import RefundExternal, { RefundBtcLike } from "../../src/pages/RefundExternal";
import { TestComponent, contextWrapper, globalSignals } from "../helper";

/* eslint-disable require-await,@typescript-eslint/require-await,@typescript-eslint/no-explicit-any */

Expand Down Expand Up @@ -64,7 +64,9 @@ describe("RefundExternal", () => {
});
await user.upload(uploadInput, swapFile);

expect(await screen.findAllByText(i18n.en.refund)).not.toBeUndefined();
expect(
await screen.findAllByText(i18n.en.refund),
).not.toBeUndefined();
});

test("should show invalid refund button when invalid file was uploaded", async () => {
Expand Down Expand Up @@ -94,6 +96,5 @@ describe("RefundExternal", () => {
await screen.findAllByText(i18n.en.invalid_refund_file),
).not.toBeUndefined();
});
})

});
});

0 comments on commit 06cd04c

Please sign in to comment.