Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: use act from @testing-library/react-hooks for
Browse files Browse the repository at this point in the history
`SecondSignatureRegistrationForm`
  • Loading branch information
goga-m committed Sep 17, 2020
1 parent 9f5336f commit 66e61d1
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -7,8 +7,9 @@ import { Form } from "app/components/Form";
import React from "react";
import { useForm } from "react-hook-form";
import { useTranslation } from "react-i18next";
import { act } from "react-test-renderer";
import secondSignatureFixture from "tests/fixtures/coins/ark/transactions/second-signature-registration.json";
import { act, env, fireEvent, getDefaultProfileId, render, screen, waitFor } from "utils/testing-library";
import { env, fireEvent, getDefaultProfileId, render, screen, waitFor } from "utils/testing-library";

import { translations as transactionTranslations } from "../../i18n";
import { SecondSignatureRegistrationForm } from "./SecondSignatureRegistrationForm";
Expand Down Expand Up @@ -70,6 +71,7 @@ describe("SecondSignatureRegistrationForm", () => {

it("should set fee", async () => {
const { result } = renderHook(() => useForm());

result.current.register("fee");

render(<Component form={result.current} onSubmit={() => void 0} />);
Expand Down

0 comments on commit 66e61d1

Please sign in to comment.