mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-09-12 11:10:59 +02:00
refactor(starter): upgrade to new version of gatsby
This commit is contained in:
12
src/components/Post/Content/Content.test.tsx
Normal file
12
src/components/Post/Content/Content.test.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import React from "react";
|
||||
import renderer from "react-test-renderer";
|
||||
|
||||
import { Content } from "@/components/Post/Content";
|
||||
|
||||
describe("Content", () => {
|
||||
it("renders correctly", () => {
|
||||
const props = { title: "test", body: "<p>test</p>" };
|
||||
const tree = renderer.create(<Content {...props} />).toJSON();
|
||||
expect(tree).toMatchSnapshot();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user