You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
459 B
21 lines
459 B
import {render} from '@testing-library/react';
|
|
|
|
import BlogPagination from './blog-pagination';
|
|
|
|
jest.mock("next/router", () => ({
|
|
useRouter() {
|
|
return {
|
|
route: "/",
|
|
pathname: "",
|
|
query: "",
|
|
asPath: "",
|
|
};
|
|
},
|
|
}));
|
|
describe('BlogPagination', () => {
|
|
it('should render successfully', () => {
|
|
const {baseElement} = render(<BlogPagination paginator={{pagination: {}}} />);
|
|
expect(baseElement).toBeTruthy();
|
|
});
|
|
});
|