Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed Feb 14, 2024
1 parent b389396 commit 2b6d145
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
3 changes: 0 additions & 3 deletions packages/grant-explorer/src/features/api/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -801,14 +801,11 @@ export const getRoundType = (payoutStrategyName: RoundPayoutType) => {
case ROUND_PAYOUT_MERKLE_OLD:
case ROUND_PAYOUT_MERKLE:
return "Quadratic Funding";
break;
case ROUND_PAYOUT_DIRECT_OLD:
case ROUND_PAYOUT_DIRECT:
return "Direct Grants";
break;
default:
return payoutStrategyName;
break;
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
RoundStatus,
getRoundSelectionParamsFromUrlParams,
} from "./hooks/useFilterRounds";
import { ROUND_PAYOUT_DIRECT, ROUND_PAYOUT_MERKLE } from "common";
import { ROUND_PAYOUT_DIRECT_OLD, ROUND_PAYOUT_MERKLE_OLD } from "common";
import { getFilterLabel } from "./utils/getFilterLabel";
import { getEnabledChains } from "../../app/chainConfig";

Expand All @@ -26,11 +26,11 @@ export const FILTER_OPTIONS: RoundFilterUiOption[] = [
children: [
{
label: "Quadratic funding",
value: ROUND_PAYOUT_MERKLE,
value: ROUND_PAYOUT_MERKLE_OLD,
},
{
label: "Direct grants",
value: ROUND_PAYOUT_DIRECT,
value: ROUND_PAYOUT_DIRECT_OLD,
},
],
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ROUND_PAYOUT_DIRECT, ROUND_PAYOUT_MERKLE } from "common";
import { ROUND_PAYOUT_DIRECT_OLD, ROUND_PAYOUT_MERKLE_OLD } from "common";
import { getExplorerPageTitle } from "../getExplorerPageTitle";
import { RoundStatus } from "../../hooks/useFilterRounds";

Expand All @@ -12,14 +12,14 @@ describe("getExplorerPageTitle", () => {
expect(
getExplorerPageTitle({
status: "",
type: ROUND_PAYOUT_MERKLE,
type: ROUND_PAYOUT_MERKLE_OLD,
network: "",
})
).toEqual("Quadratic Funding rounds");
expect(
getExplorerPageTitle({
status: "",
type: ROUND_PAYOUT_DIRECT,
type: ROUND_PAYOUT_DIRECT_OLD,
network: "",
})
).toEqual("Direct Grants rounds");
Expand Down Expand Up @@ -49,7 +49,7 @@ describe("getExplorerPageTitle", () => {
expect(
getExplorerPageTitle({
status: "active,finished",
type: ROUND_PAYOUT_MERKLE,
type: ROUND_PAYOUT_MERKLE_OLD,
network: "",
})
).toEqual("Multiple filters");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ROUND_PAYOUT_DIRECT, ROUND_PAYOUT_MERKLE } from "common";
import { ROUND_PAYOUT_DIRECT_OLD, ROUND_PAYOUT_MERKLE_OLD } from "common";
import { getFilterLabel } from "./getFilterLabel";
import { RoundFilterParams, RoundStatus } from "../hooks/useFilterRounds";

Expand All @@ -8,9 +8,9 @@ export function getExplorerPageTitle(filter: RoundFilterParams): string {
switch (value) {
case "":
return "All rounds";
case ROUND_PAYOUT_MERKLE:
case ROUND_PAYOUT_MERKLE_OLD:
return "Quadratic Funding rounds";
case ROUND_PAYOUT_DIRECT:
case ROUND_PAYOUT_DIRECT_OLD:
return "Direct Grants rounds";
case RoundStatus.active:
return "Active rounds";
Expand Down

0 comments on commit 2b6d145

Please sign in to comment.