Skip to content

Commit

Permalink
missed one...
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamejason committed Jun 14, 2024
1 parent 7649e2e commit eb9752b
Showing 1 changed file with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { render, screen } from "@testing-library/react";
// import { render, screen } from "@testing-library/react";
// import { useTokenPrice } from "common";
// import { useParams } from "react-router-dom";
import {
Expand All @@ -8,7 +8,7 @@ import {
// wrapWithRoundContext,
} from "../../../test-utils";
import { Round } from "../../api/types";
import ReclaimFunds from "../ReclaimFunds";
// import ReclaimFunds from "../ReclaimFunds";
// import ViewRoundPage from "../ViewRoundPage";

const mockRoundData: Round = makeRoundData();
Expand Down Expand Up @@ -77,29 +77,30 @@ jest.mock("data-layer", () => ({
useApplicationsByRoundId: () => {},
}));

const chainId = "1";
const roundId = "testRoundId";
// const chainId = "1";
// const roundId = "testRoundId";

describe("ReclaimFunds", () => {
it("displays NoInformationContent when round is not over", () => {
expect(true).toBe(true);
// const currentTime = new Date();
// const roundEndTime = new Date(currentTime.getTime() + 1000 * 60 * 60 * 25);
// mockRoundData.roundEndTime = roundEndTime;

// const daysLeft = Number(roundEndTime) - Number(currentTime);
// const daysLeftInRound = Number(daysLeft / (1000 * 60 * 60 * 24)).toFixed(0);

render(
<ReclaimFunds round={mockRoundData} chainId={chainId} roundId={roundId} />
);
expect(
screen.getByText(`31 days until you can reclaim funds`)
).toBeInTheDocument();
expect(
screen.getByText(
"If there is a balance left over, you will be able to reclaim funds here."
)
).toBeInTheDocument();
// render(
// <ReclaimFunds round={mockRoundData} chainId={chainId} roundId={roundId} />
// );
// expect(
// screen.getByText(`31 days until you can reclaim funds`)
// ).toBeInTheDocument();
// expect(
// screen.getByText(
// "If there is a balance left over, you will be able to reclaim funds here."
// )
// ).toBeInTheDocument();
});

// describe("when round is over", () => {
Expand Down

0 comments on commit eb9752b

Please sign in to comment.