mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-04-08 00:00:37 +02:00
17 lines
402 B
TypeScript
17 lines
402 B
TypeScript
import React from "react";
|
|
import renderer from "react-test-renderer";
|
|
|
|
import { Meta } from "@/components/Post/Meta";
|
|
import * as mocks from "@/mocks";
|
|
|
|
describe("Meta", () => {
|
|
it("renders correctly", () => {
|
|
const props = {
|
|
date: mocks.markdownRemark.frontmatter.date,
|
|
};
|
|
|
|
const tree = renderer.create(<Meta {...props} />).toJSON();
|
|
expect(tree).toMatchSnapshot();
|
|
});
|
|
});
|