Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKurt committed Apr 26, 2024
1 parent 4798b95 commit 11a6949
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions packages/builder/src/__tests__/reducers/projects.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe("projects reducer", () => {
metadataCid: "0x1",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -71,6 +72,7 @@ describe("projects reducer", () => {
metadataCid: "0x1",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -116,6 +118,7 @@ describe("projects reducer", () => {
metadataCid: "0x1",
metadata: {},
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -159,6 +162,7 @@ describe("projects reducer", () => {
metadataCid: "0x1",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -201,6 +205,7 @@ describe("projects reducer", () => {
metadataCid: "0x2",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -240,6 +245,7 @@ describe("projects reducer", () => {
metadataCid: "0x1",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -329,6 +335,7 @@ describe("projects reducer", () => {
metadataCid: "0x1",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -365,6 +372,7 @@ describe("projects reducer", () => {
metadataCid: "0x1",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -399,6 +407,7 @@ describe("projects reducer", () => {
metadataCid: "0x2",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -433,6 +442,7 @@ describe("projects reducer", () => {
metadataCid: "0x3",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -467,6 +477,7 @@ describe("projects reducer", () => {
metadataCid: "0x4",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -503,6 +514,7 @@ describe("projects reducer", () => {
metadataCid: "0x1",
metadata: {} as ProjectApplicationMetadata,
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down Expand Up @@ -548,6 +560,7 @@ describe("projects reducer", () => {
metadataCid: "0x3",
metadata: {},
distributionTransaction: null,
anchorAddress: addressFrom(123) as `0x${string}`,
round: {
applicationsStartTime: "0",
applicationsEndTime: "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("getFilterLabel", () => {
).toEqual("Quadratic funding");
// Filters out commas
expect(
getFilterLabel({ status: "", type: ",allov1.Direct", network: "" }).label
getFilterLabel({ status: "", type: "allov1.Direct", network: "" }).label
).toEqual("Direct grants");
});
it("Returns Multiple when many are selected from same category", async () => {
Expand Down

0 comments on commit 11a6949

Please sign in to comment.