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:
18
src/components/Page/Page.test.tsx
Normal file
18
src/components/Page/Page.test.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user