14 lines
400 B
TypeScript
14 lines
400 B
TypeScript
import React from 'react';
|
|
import { render } from '@testing-library/react';
|
|
import Separator from './Paginator/Separator';
|
|
|
|
describe('Elements', () => {
|
|
describe('Paginator', () => {
|
|
it('separator - renders dash', () => {
|
|
const { getByText } = render(<Separator />);
|
|
const linkElement = getByText(/—/i); // —
|
|
expect(linkElement).toBeInTheDocument();
|
|
});
|
|
});
|
|
});
|