Skip to content

Commit f388b6c

Browse files
committed
chore: fix lint
1 parent 72eee76 commit f388b6c

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"coverage": "father test --coverage",
3636
"tsc": "bunx tsc --noEmit",
3737
"deploy": "UMI_ENV=gh npm run build && gh-pages -d dist",
38-
"lint": "eslint src/ examples/ --ext .tsx,.ts,.jsx,.jsx",
38+
"lint": "eslint src/ examples/ tests/ --ext .tsx,.ts,.jsx,.jsx",
3939
"now-build": "npm run build",
4040
"prepublishOnly": "npm run compile && rc-np",
4141
"lint:tsc": "tsc -p tsconfig.json --noEmit",

tests/checkable.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { fireEvent, render } from '@testing-library/react';
22
import React from 'react';
33
import Cascader from '../src';
44
import { addressOptions } from './demoOptions';
5-
import { clickOption, selectOption } from './util';
5+
import { clickOption } from './util';
66

77
describe('Cascader.Checkable', () => {
88
const options = [

tests/keyboard.spec.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ describe('Cascader.Keyboard', () => {
161161
const { container } = render(
162162
<Cascader options={addressOptions} onChange={onChange} direction="rtl" />,
163163
);
164-
const input = container.querySelector('input')!;
165164

166165
keyDown(container, KeyCode.DOWN);
167166
// Check if dropdown is open
@@ -197,7 +196,6 @@ describe('Cascader.Keyboard', () => {
197196
const { container } = render(
198197
<Cascader options={addressOptions} onChange={onChange} expandIcon="" />,
199198
);
200-
const input = container.querySelector('input')!;
201199

202200
keyDown(container, KeyCode.ENTER);
203201
// Check if dropdown is open
@@ -235,7 +233,6 @@ describe('Cascader.Keyboard', () => {
235233
]}
236234
/>,
237235
);
238-
const input = container.querySelector('input')!;
239236

240237
keyDown(container, KeyCode.ENTER);
241238
keyDown(container, KeyCode.UP);
@@ -250,7 +247,6 @@ describe('Cascader.Keyboard', () => {
250247
const { container } = render(
251248
<Cascader options={addressOptions} onChange={onChange} expandIcon="" />,
252249
);
253-
const input = container.querySelector('input')!;
254250

255251
keyDown(container, KeyCode.DOWN);
256252
// Check if dropdown is open
@@ -290,7 +286,6 @@ describe('Cascader.Keyboard', () => {
290286
const { container } = render(
291287
<Cascader options={addressOptions} onChange={onChange} onKeyDown={onKeyDown} expandIcon="" />,
292288
);
293-
const input = container.querySelector('input')!;
294289

295290
keyDown(container, KeyCode.DOWN);
296291
// Check if dropdown is open
@@ -311,7 +306,6 @@ describe('Cascader.Keyboard', () => {
311306
const { container } = render(
312307
<Cascader options={addressOptions} onChange={onChange} changeOnSelect />,
313308
);
314-
const input = container.querySelector('input')!;
315309

316310
keyDown(container, KeyCode.ENTER);
317311
// Check if dropdown is open
@@ -340,7 +334,6 @@ describe('Cascader.Keyboard', () => {
340334
changeOnSelect
341335
/>,
342336
);
343-
const input = container.querySelector('input')!;
344337

345338
for (let i = 0; i < 10; i += 1) {
346339
keyDown(container, KeyCode.DOWN);

0 commit comments

Comments
 (0)