mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 12:42:28 +02:00
added legal pages, resized tablet view, fixed prettier
This commit is contained in:
@@ -3,9 +3,9 @@ import renderer from "react-test-renderer";
|
||||
|
||||
import { StaticQuery, useStaticQuery } from "gatsby";
|
||||
|
||||
import CategoriesTemplate from "./CategoriesTemplate";
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
import CategoriesTemplate from "./CategoriesTemplate";
|
||||
|
||||
const mockedStaticQuery = StaticQuery as jest.Mock;
|
||||
const mockedUseStaticQuery = useStaticQuery as jest.Mock;
|
||||
|
@@ -177,6 +177,9 @@ exports[`CategoriesTemplate renders correctly 1`] = `
|
||||
<div>
|
||||
All rights reserved.
|
||||
</div>
|
||||
<nav>
|
||||
<ul />
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
@@ -3,9 +3,9 @@ import renderer from "react-test-renderer";
|
||||
|
||||
import { StaticQuery, useStaticQuery } from "gatsby";
|
||||
|
||||
import CategoryTemplate from "./CategoryTemplate";
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
import CategoryTemplate from "./CategoryTemplate";
|
||||
|
||||
const mockedStaticQuery = StaticQuery as jest.Mock;
|
||||
const mockedUseStaticQuery = useStaticQuery as jest.Mock;
|
||||
|
@@ -177,6 +177,9 @@ exports[`CategoryTemplate renders correctly 1`] = `
|
||||
<div>
|
||||
All rights reserved.
|
||||
</div>
|
||||
<nav>
|
||||
<ul />
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
@@ -3,9 +3,9 @@ import renderer from "react-test-renderer";
|
||||
|
||||
import { StaticQuery, useStaticQuery } from "gatsby";
|
||||
|
||||
import IndexTemplate from "./IndexTemplate";
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
import IndexTemplate from "./IndexTemplate";
|
||||
|
||||
const mockedStaticQuery = StaticQuery as jest.Mock;
|
||||
const mockedUseStaticQuery = useStaticQuery as jest.Mock;
|
||||
|
@@ -177,6 +177,9 @@ exports[`IndexTemplate renders correctly 1`] = `
|
||||
<div>
|
||||
All rights reserved.
|
||||
</div>
|
||||
<nav>
|
||||
<ul />
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
@@ -2,10 +2,10 @@ import React from "react";
|
||||
import renderer from "react-test-renderer";
|
||||
|
||||
import { StaticQuery, useStaticQuery } from "gatsby";
|
||||
import NotFoundTemplate from "./NotFoundTemplate";
|
||||
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
import NotFoundTemplate from "./NotFoundTemplate";
|
||||
|
||||
const mockedStaticQuery = StaticQuery as jest.Mock;
|
||||
const mockedUseStaticQuery = useStaticQuery as jest.Mock;
|
||||
|
@@ -177,6 +177,9 @@ exports[`NotFoundTemplate renders correctly 1`] = `
|
||||
<div>
|
||||
All rights reserved.
|
||||
</div>
|
||||
<nav>
|
||||
<ul />
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
@@ -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>
|
||||
|
@@ -2,11 +2,10 @@ import React from "react";
|
||||
import renderer from "react-test-renderer";
|
||||
|
||||
import { StaticQuery, useStaticQuery } from "gatsby";
|
||||
import PostTemplate from "./PostTemplate";
|
||||
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
import PostTemplate from "./PostTemplate";
|
||||
|
||||
const mockedStaticQuery = StaticQuery as jest.Mock;
|
||||
const mockedUseStaticQuery = useStaticQuery as jest.Mock;
|
||||
|
||||
|
@@ -1,11 +1,8 @@
|
||||
import { StaticQuery, useStaticQuery } from "gatsby";
|
||||
import React from "react";
|
||||
import renderer from "react-test-renderer";
|
||||
|
||||
import { StaticQuery, useStaticQuery } from "gatsby";
|
||||
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
import TagTemplate from "./TagTemplate";
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
const mockedStaticQuery = StaticQuery as jest.Mock;
|
||||
const mockedUseStaticQuery = useStaticQuery as jest.Mock;
|
||||
|
@@ -177,6 +177,9 @@ exports[`TagTemplate renders correctly 1`] = `
|
||||
<div>
|
||||
All rights reserved.
|
||||
</div>
|
||||
<nav>
|
||||
<ul />
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
@@ -2,10 +2,10 @@ import React from "react";
|
||||
import renderer from "react-test-renderer";
|
||||
|
||||
import { StaticQuery, useStaticQuery } from "gatsby";
|
||||
import TagsTemplate from "./TagsTemplate";
|
||||
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
import TagsTemplate from "./TagsTemplate";
|
||||
|
||||
const mockedStaticQuery = StaticQuery as jest.Mock;
|
||||
const mockedUseStaticQuery = useStaticQuery as jest.Mock;
|
||||
|
@@ -177,6 +177,9 @@ exports[`TagsTemplate renders correctly 1`] = `
|
||||
<div>
|
||||
All rights reserved.
|
||||
</div>
|
||||
<nav>
|
||||
<ul />
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
Reference in New Issue
Block a user