alxshelepenok/gatsby-starter-lumen

View on GitHub
src/components/Pagination/Pagination.test.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";

import { Pagination } from "@/components/Pagination";
import * as mocks from "@/mocks";
import { testUtils } from "@/utils";

describe("Pagination", () => {
  test("renders correctly", () => {
    const props = { ...mocks.pageContext.pagination };
    const tree = testUtils
      .createSnapshotsRenderer(<Pagination {...props} />)
      .toJSON();
    expect(tree).toMatchSnapshot();
  });
});