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