Fix lint:frontend warnings (#20256)

This commit is contained in:
ktmouk 2023-10-20 01:59:54 +09:00 committed by GitHub
parent d78870745b
commit 3b37658df5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 14 additions and 12 deletions

View file

@ -1,6 +1,6 @@
import { h } from 'preact';
import { render, fireEvent, waitFor } from '@testing-library/preact';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import { axe } from 'jest-axe';
import { Search } from '../Search';

View file

@ -1,6 +1,6 @@
import fetch from 'jest-fetch-mock';
import '@testing-library/jest-dom';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import { convertCoauthorIdsToUsernameInputs } from '../packs/dashboards/convertCoauthorIdsToUsernameInputs';

View file

@ -2,7 +2,7 @@ import { h } from 'preact';
import { render, waitFor } from '@testing-library/preact';
import fetch from 'jest-fetch-mock';
import '@testing-library/jest-dom';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import { axe } from 'jest-axe';
import { Form } from '../Form';

View file

@ -1,6 +1,6 @@
import { h } from 'preact';
import { render, waitFor } from '@testing-library/preact';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import '@testing-library/jest-dom';
import { AutocompleteTriggerTextArea } from '../AutocompleteTriggerTextArea';

View file

@ -2,7 +2,7 @@ import { h } from 'preact';
import { axe } from 'jest-axe';
import '@testing-library/jest-dom';
import { render, waitFor } from '@testing-library/preact';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import { MobileDrawer } from '../MobileDrawer';
describe('<MobileDrawer />', () => {

View file

@ -2,7 +2,7 @@ import { h } from 'preact';
import { axe } from 'jest-axe';
import '@testing-library/jest-dom';
import { render, waitFor } from '@testing-library/preact';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import { Modal } from '../Modal';
describe('Modal', () => {

View file

@ -1,6 +1,6 @@
import { h } from 'preact';
import { render, waitFor } from '@testing-library/preact';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import '@testing-library/jest-dom';

View file

@ -1,6 +1,6 @@
import { h } from 'preact';
import { render, waitFor } from '@testing-library/preact';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import '@testing-library/jest-dom';

View file

@ -1,6 +1,6 @@
import { h } from 'preact';
import { render, waitFor, within } from '@testing-library/preact';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import {
DateRangePicker,
MONTH_UNTIL_TODAY,

View file

@ -1,7 +1,7 @@
import fetch from 'jest-fetch-mock';
import { h } from 'preact';
import { render, waitFor } from '@testing-library/preact';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import { axe } from 'jest-axe';
import { ListingTagsField } from '../components/ListingTagsField';
import '@testing-library/jest-dom';

View file

@ -1,6 +1,6 @@
import { h } from 'preact';
import { render } from '@testing-library/preact';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import '@testing-library/jest-dom';

View file

@ -1,7 +1,7 @@
import { h } from 'preact';
import { render, waitFor } from '@testing-library/preact';
import '@testing-library/jest-dom';
import userEvent from '@testing-library/user-event';
import { userEvent } from '@testing-library/user-event';
import { FocusTrap } from '../focusTrap';

View file

@ -53,6 +53,8 @@ describe('CodeFullScreenModeSwitcher Utility', () => {
({ onPressEscape, onPopstate } = await importModule());
});
// Assertions are called within the `testNonFullScreen` function.
// eslint-disable-next-line jest/expect-expect
it('starts in non-fullscreen mode', testNonFullScreen);
it('enters fullscreen mode on click', () => {