mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-12-06 18:27:00 +01:00
chore: formatted, prettified, legacy deps
This commit is contained in:
@@ -6,15 +6,12 @@ import { StaticQuery, useStaticQuery } from "gatsby";
|
||||
import IndexTemplate from "./IndexTemplate";
|
||||
import * as mocks from "@/mocks";
|
||||
|
||||
|
||||
const mockedStaticQuery = StaticQuery as jest.Mock;
|
||||
const mockedUseStaticQuery = useStaticQuery as jest.Mock;
|
||||
|
||||
describe("IndexTemplate", () => {
|
||||
beforeEach(() => {
|
||||
mockedStaticQuery.mockImplementationOnce(({ render }) =>
|
||||
render(mocks.siteMetadata),
|
||||
);
|
||||
mockedStaticQuery.mockImplementationOnce(({ render }) => render(mocks.siteMetadata));
|
||||
mockedUseStaticQuery.mockReturnValue(mocks.siteMetadata);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user