Files
rickvanlieshout.com/src/components/Sidebar/Author/Author.test.tsx
2022-04-16 14:53:32 +00:00

15 lines
393 B
TypeScript

import React from "react";
import renderer from "react-test-renderer";
import { Author } from "@/components/Sidebar/Author";
import * as mocks from "@/mocks";
describe("Author", () => {
const props = { isIndex: false, author: mocks.author };
it("renders correctly", () => {
const tree = renderer.create(<Author {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});
});