pleroma/app/soapbox/features/compose/components/__tests__/search.test.tsx

33 lines
955 B
TypeScript
Raw Normal View History

2023-06-20 19:44:07 -07:00
test.skip('skip', () => {});
2022-04-06 07:10:21 -07:00
2023-06-20 19:44:07 -07:00
// import userEvent from '@testing-library/user-event';
// import React from 'react';
2022-04-06 07:10:21 -07:00
2023-06-20 19:44:07 -07:00
// import { __stub } from 'soapbox/api';
2022-04-06 07:10:21 -07:00
2023-06-20 19:44:07 -07:00
// import { render, screen, waitFor } from '../../../../jest/test-helpers';
// import Search from '../search';
2022-04-06 07:10:21 -07:00
2023-06-20 19:44:07 -07:00
// describe('<Search />', () => {
// it('successfully renders', async() => {
// render(<Search autosuggest />);
// expect(screen.getByLabelText('Search')).toBeInTheDocument();
// });
2022-04-06 07:10:21 -07:00
2023-06-20 19:44:07 -07:00
// it('handles onChange', async() => {
// __stub(mock => {
// mock.onGet('/api/v1/accounts/search').reply(200, [{ id: 1 }]);
// });
// const user = userEvent.setup();
2022-04-06 07:10:21 -07:00
2023-06-20 19:44:07 -07:00
// render(<Search autosuggest />);
2022-04-06 07:10:21 -07:00
2023-06-20 19:44:07 -07:00
// await user.type(screen.getByLabelText('Search'), '@jus');
// await waitFor(() => {
// expect(screen.getByLabelText('Search')).toHaveValue('@jus');
// expect(screen.getByTestId('account')).toBeInTheDocument();
// });
// });
// });