mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
18 lines
395 B
TypeScript
18 lines
395 B
TypeScript
/**
|
|
* @jest-environment jsdom
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { render, screen } from '@testing-library/react';
|
|
import BackToTop from 'components/BackToTop';
|
|
|
|
describe('Back to top', () => {
|
|
it('should render', () => {
|
|
const { container, rerender } = render(
|
|
<BackToTop showBacktop={false} backToTop={() => {}} />
|
|
);
|
|
|
|
expect(container).toBeInTheDocument();
|
|
});
|
|
});
|