Skip to content

Commit

Permalink
chore: fix props for domain-services test
Browse files Browse the repository at this point in the history
  • Loading branch information
valpinkman committed Sep 25, 2023
1 parent 5ad8113 commit b39e840
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const CustomTest = ({ str }: { str: string }) => {
);
};

const wrapper: React.ComponentType<string> = ({ children }) => (
const wrapper: React.ComponentType<{ children?: React.ReactNode }> = ({ children }) => (
<DomainServiceProvider>{children}</DomainServiceProvider>
);

Expand All @@ -65,6 +65,7 @@ describe("useDomain", () => {
it("should return an error when no resolution is found", async () => {
const { result } = renderHook(useDomain, {
initialProps: "",
// @ts-expect-error weird ts error
wrapper,
});

Expand All @@ -76,6 +77,7 @@ describe("useDomain", () => {
it("should return an error when no resolution is found", async () => {
const { result, waitForValueToChange } = renderHook(useDomain, {
initialProps: "404-Not-Found.eth",
// @ts-expect-error weird ts error
wrapper,
});

Expand All @@ -87,6 +89,7 @@ describe("useDomain", () => {
it("should return an error when the input has a forward registry but content is invalid", async () => {
const { result, waitForValueToChange } = renderHook(useDomain, {
initialProps: "not|valid|👋.eth",
// @ts-expect-error weird ts error
wrapper,
});

Expand Down

0 comments on commit b39e840

Please sign in to comment.