mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 12:42:28 +02:00
15 lines
393 B
TypeScript
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();
|
|
});
|
|
});
|