/* eslint-disable react/prop-types */
import React from 'react';
import { render } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import Disclaimer from '.';

describe('Disclaimer Teatime and Lunchtime Component', () => {
  test('renders without crashing with serverData', () => {
    const { getByText } = render(<Disclaimer />);
    expect(
      getByText(
        'While we strive to ensure that the information on this page is correct and up to date, we cannot guarantee the accuracy or reliability of the UK49s results. Any winnings should be confirmed with the official UK49s website or authorized distributors.'
      )
    ).toBeTruthy();
  });
});
