CEC-2389 Add unit tests for SMS Context and SMS form (#247)

This commit is contained in:
arpanetus
2022-12-14 22:34:11 +06:00
committed by GitHub
parent 2ec340efc5
commit 7d27a0193f
9 changed files with 373 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
import React from "react";
import {render, waitFor} from "@testing-library/react";
import SendForm from "./SendForm";
import addSnapshotSerializer from "../../../utils/snapshot";
describe("Send Form Component", () => {
beforeAll(() => {
addSnapshotSerializer(expect);
});
it("Render", async () => {
const {container} = render(<SendForm onSend={()=>{}} busy={false}/>);
await waitFor(() => {
/* render */
});
expect(container).toMatchSnapshot();
});
});