Skip to content

Commit 69acbcb

Browse files
committed
chore(pr): fix
1 parent 48f9f72 commit 69acbcb

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

services/vault/src/components/simple/__tests__/PostDepositContinuationView.test.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { ReactNode } from "react";
33
import type { Address, Hex } from "viem";
44
import { beforeEach, describe, expect, it, vi } from "vitest";
55

6+
import { DepositFlowStep } from "@/hooks/deposit/depositFlowSteps";
67
import {
78
getPeginDisplayStep,
89
getWarningPeginDisplayStep,
@@ -269,9 +270,11 @@ function renderView(
269270
describe("PostDepositContinuationView", () => {
270271
beforeEach(() => {
271272
vi.clearAllMocks();
272-
vi.mocked(getPeginDisplayStep).mockReturnValue("AWAIT_BTC_CONFIRMATION");
273+
vi.mocked(getPeginDisplayStep).mockReturnValue(
274+
DepositFlowStep.AWAIT_BTC_CONFIRMATION,
275+
);
273276
vi.mocked(getWarningPeginDisplayStep).mockReturnValue(
274-
"AWAIT_BTC_CONFIRMATION",
277+
DepositFlowStep.AWAIT_BTC_CONFIRMATION,
275278
);
276279
});
277280

@@ -768,7 +771,7 @@ describe("PostDepositContinuationView", () => {
768771
vi.mocked(getPeginDisplayStep).mockImplementation((state) =>
769772
state.displayVariant === "warning" || state.contractStatus === 2
770773
? null
771-
: "AWAIT_BTC_CONFIRMATION",
774+
: DepositFlowStep.AWAIT_BTC_CONFIRMATION,
772775
);
773776

774777
const states = new Map<string, ReturnType<typeof resultWith>>([
@@ -799,7 +802,10 @@ describe("PostDepositContinuationView", () => {
799802

800803
expect(getByTestId("error").textContent).toBe("This deposit has expired.");
801804
expect(getByTestId("per-vault-steps").textContent).toBe(
802-
JSON.stringify(["AWAIT_BTC_CONFIRMATION", "COMPLETED"]),
805+
JSON.stringify([
806+
DepositFlowStep.AWAIT_BTC_CONFIRMATION,
807+
DepositFlowStep.COMPLETED,
808+
]),
803809
);
804810
});
805811

0 commit comments

Comments
 (0)