mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-02-06 02:22:37 +01:00
19 lines
369 B
TypeScript
19 lines
369 B
TypeScript
|
import React from "react";
|
||
|
import renderer from "react-test-renderer";
|
||
|
|
||
|
import Page from "./Page";
|
||
|
|
||
|
describe("Page", () => {
|
||
|
const props = {
|
||
|
children: "test",
|
||
|
title: "test",
|
||
|
};
|
||
|
|
||
|
it("renders correctly", () => {
|
||
|
const tree = renderer
|
||
|
.create(<Page {...props}>{props.children}</Page>)
|
||
|
.toJSON();
|
||
|
expect(tree).toMatchSnapshot();
|
||
|
});
|
||
|
});
|