Untuck tests out of __tests__ directories, colocate with program files
This commit is contained in:
@ -1,32 +0,0 @@
|
||||
test.skip('skip', () => {});
|
||||
|
||||
// import userEvent from '@testing-library/user-event';
|
||||
// import React from 'react';
|
||||
|
||||
// import { __stub } from 'soapbox/api';
|
||||
|
||||
// import { render, screen, waitFor } from '../../../../jest/test-helpers';
|
||||
// import Search from '../search';
|
||||
|
||||
// describe('<Search />', () => {
|
||||
// it('successfully renders', async() => {
|
||||
// render(<Search autosuggest />);
|
||||
// expect(screen.getByLabelText('Search')).toBeInTheDocument();
|
||||
// });
|
||||
|
||||
// it('handles onChange', async() => {
|
||||
// __stub(mock => {
|
||||
// mock.onGet('/api/v1/accounts/search').reply(200, [{ id: 1 }]);
|
||||
// });
|
||||
// const user = userEvent.setup();
|
||||
|
||||
// render(<Search autosuggest />);
|
||||
|
||||
// await user.type(screen.getByLabelText('Search'), '@jus');
|
||||
|
||||
// await waitFor(() => {
|
||||
// expect(screen.getByLabelText('Search')).toHaveValue('@jus');
|
||||
// expect(screen.getByTestId('account')).toBeInTheDocument();
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
@ -1,8 +1,9 @@
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import React from 'react';
|
||||
|
||||
import { render, screen } from '../../../../../jest/test-helpers';
|
||||
import DurationSelector from '../duration-selector';
|
||||
import { render, screen } from 'soapbox/jest/test-helpers';
|
||||
|
||||
import DurationSelector from './duration-selector';
|
||||
|
||||
describe('<DurationSelector />', () => {
|
||||
it('defaults to 2 days', () => {
|
||||
Reference in New Issue
Block a user