mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-10-23 22:05:18 +02:00
added legal pages, resized tablet view, fixed prettier
This commit is contained in:
@@ -2,11 +2,10 @@ import React from "react";
|
||||
import renderer from "react-test-renderer";
|
||||
|
||||
import { StaticQuery, useStaticQuery } from "gatsby";
|
||||
import PageTemplate from "./PageTemplate";
|
||||
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
import PageTemplate from "./PageTemplate";
|
||||
|
||||
const mockedStaticQuery = StaticQuery as jest.Mock;
|
||||
const mockedUseStaticQuery = useStaticQuery as jest.Mock;
|
||||
|
||||
@@ -18,9 +17,7 @@ describe("PageTemplate", () => {
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
mockedStaticQuery.mockImplementationOnce(({ render }) =>
|
||||
render(mocks.siteMetadata),
|
||||
);
|
||||
mockedStaticQuery.mockImplementationOnce(({ render }) => render(mocks.siteMetadata));
|
||||
mockedUseStaticQuery.mockReturnValue(mocks.siteMetadata);
|
||||
});
|
||||
|
||||
|
||||
@@ -177,6 +177,9 @@ exports[`PageTemplate renders correctly 1`] = `
|
||||
<div>
|
||||
All rights reserved.
|
||||
</div>
|
||||
<nav>
|
||||
<ul />
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user