import { createRef } from 'react';
import { render, screen } from '../../test-utils';
import Option from '.';
describe('Option', () => {
it('renders the title', () => {
render(} button={} />);
expect(() => screen.getByText('Option title')).not.toThrow();
});
it('`ref` attribute is passed to Option and reference is created', () => {
const reference = createRef();
expect(reference.current).toBeFalsy();
render(} button={} />);
expect(reference.current).toBeTruthy();
});
});