Skip to content

Commit

Permalink
fix(app): updates tests with enum
Browse files Browse the repository at this point in the history
  • Loading branch information
aminah-io committed Nov 17, 2023
1 parent 1dd0149 commit 1c4dd79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/__test-fixtures__/contextTestHelpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { render } from "@testing-library/react";
import { PLATFORM_ID } from "@gitcoin/passport-types";
import { PlatformProps } from "../components/GenericPlatform";
import { OnChainContextState } from "../context/onChainContext";
import { StampClaimingContextState } from "../context/stampClaimingContext";
import { StampClaimingContextState, StampClaimProgressStatus } from "../context/stampClaimingContext";
import {
DatastoreConnectionContext,
DatastoreConnectionContextState,
Expand Down Expand Up @@ -152,7 +152,7 @@ export const makeTestClaimingContext = (
): StampClaimingContextState => {
return {
claimCredentials: jest.fn(),
status: "",
status: StampClaimProgressStatus.Idle,
...initialState,
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ExpiredStampModalProps,
} from "../../components/InitiateReverifyStampsButton";
import { CeramicContextState, CeramicContext, platforms } from "../../context/ceramicContext";
import { StampClaimingContext } from "../../context/stampClaimingContext";
import { StampClaimingContext, StampClaimProgressStatus } from "../../context/stampClaimingContext";
import { PROVIDER_ID } from "@gitcoin/passport-types";

const defaultProps: ExpiredStampModalProps = {
Expand Down Expand Up @@ -45,7 +45,7 @@ const mockCeramicContext: CeramicContextState = {

const mockStampClaimingContext = {
claimCredentials: jest.fn(),
status: "",
status: StampClaimProgressStatus.Idle,
};

describe("InitiateReverifyStampsButton", () => {
Expand Down
2 changes: 1 addition & 1 deletion app/context/stampClaimingContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { DoneToastContent } from "../components/DoneToastContent";
const success = "../../assets/check-icon2.svg";
const fail = "../assets/verification-failed-bright.svg";

enum StampClaimProgressStatus {
export enum StampClaimProgressStatus {
Idle = "idle",
InProgress = "in_progress",
}
Expand Down

0 comments on commit 1c4dd79

Please sign in to comment.