import { createRef } from 'react';
import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';
import { AmountInput } from '../index';
describe(' ref', () => {
it('should be able to add HTML ref to component', () => {
const ref = createRef();
render();
expect(screen.getByRole('textbox')).toBe(ref.current);
});
});