Skip to content

Commit

Permalink
fix: broken TransactionLockupFailed test
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Nov 27, 2024
1 parent 7a84092 commit 4391b15
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions tests/status/TransactionLockupFailed.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { render, screen } from "@solidjs/testing-library";
import { OutputType } from "boltz-core";
import { createSignal } from "solid-js";

import { BTC, RBTC } from "../../src/consts/Assets";
import i18n from "../../src/i18n/i18n";
Expand All @@ -26,11 +27,16 @@ describe("TransactionLockupFailed", () => {
test.each([OutputType.Bech32, OutputType.Compatibility, undefined])(
"should show timeout for legacy swaps",
async (type) => {
// eslint-disable-next-line solid/reactivity
const [, setStatusOverride] = createSignal<string>();

render(
() => (
<>
<TestComponent />
<TransactionLockupFailed />
<TransactionLockupFailed
setStatusOverride={setStatusOverride}
/>
</>
),
{
Expand All @@ -49,11 +55,16 @@ describe("TransactionLockupFailed", () => {
);

test("should show refund button for Taproot swaps", async () => {
// eslint-disable-next-line solid/reactivity
const [, setStatusOverride] = createSignal<string>();

render(
() => (
<>
<TestComponent />
<TransactionLockupFailed />
<TransactionLockupFailed
setStatusOverride={setStatusOverride}
/>
</>
),
{
Expand All @@ -71,11 +82,16 @@ describe("TransactionLockupFailed", () => {
});

test("should show refund button for RBTC swaps", async () => {
// eslint-disable-next-line solid/reactivity
const [, setStatusOverride] = createSignal<string>();

render(
() => (
<>
<TestComponent />
<TransactionLockupFailed />
<TransactionLockupFailed
setStatusOverride={setStatusOverride}
/>
</>
),
{
Expand Down

0 comments on commit 4391b15

Please sign in to comment.