Fix lint:frontend warnings (#20256)
This commit is contained in:
parent
d78870745b
commit
3b37658df5
13 changed files with 14 additions and 12 deletions
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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 />', () => {
|
||||
|
|
|
|||
|
|
@ -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', () => {
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue