CEC-2389 Add unit tests for SMS Context and SMS form (#247)
This commit is contained in:
19
src/components/SMS/Send/SendForm.test.jsx
Normal file
19
src/components/SMS/Send/SendForm.test.jsx
Normal 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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user