Skip to content

Commit 582df18

Browse files
committed
lint pass
1 parent 1845c9d commit 582df18

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

src/helpers/a11yAPI.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// @flow
22
import type { A11yRole, A11yStates, A11yState, A11yValue } from '../types.flow';
3-
<<<<<<< HEAD
43
import type { WaitForOptions } from './findByAPI';
5-
=======
64
import makeQuery from './makeQuery';
7-
>>>>>>> chore: bump eslint config to latest
85

96
type GetReturn = ReactTestInstance;
107
type GetAllReturn = Array<ReactTestInstance>;
@@ -47,18 +44,18 @@ type A11yAPI = {|
4744
findAllByA11yStates: (A11yStates, ?WaitForOptions) => FindAllReturn,
4845

4946
// State
50-
getByA11yState: A11yState => GetReturn,
51-
getAllByA11yState: A11yState => GetAllReturn,
52-
queryByA11yState: A11yState => QueryReturn,
53-
queryAllByA11yState: A11yState => QueryAllReturn,
47+
getByA11yState: (A11yState) => GetReturn,
48+
getAllByA11yState: (A11yState) => GetAllReturn,
49+
queryByA11yState: (A11yState) => QueryReturn,
50+
queryAllByA11yState: (A11yState) => QueryAllReturn,
5451
findByA11yState: (A11yState, ?WaitForOptions) => FindReturn,
5552
findAllByA11yState: (A11yState, ?WaitForOptions) => FindAllReturn,
5653

5754
// Value
58-
getByA11yValue: A11yValue => GetReturn,
59-
getAllByA11yValue: A11yValue => GetAllReturn,
60-
queryByA11yValue: A11yValue => QueryReturn,
61-
queryAllByA11yValue: A11yValue => QueryAllReturn,
55+
getByA11yValue: (A11yValue) => GetReturn,
56+
getAllByA11yValue: (A11yValue) => GetAllReturn,
57+
queryByA11yValue: (A11yValue) => QueryReturn,
58+
queryAllByA11yValue: (A11yValue) => QueryAllReturn,
6259
findByA11yValue: (A11yValue, ?WaitForOptions) => FindReturn,
6360
findAllByA11yValue: (A11yValue, ?WaitForOptions) => FindAllReturn,
6461
|};

src/helpers/findByAPI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @flow
2+
import waitForElement from '../waitForElement';
23
import {
34
fixedGetByTestId,
45
getAllByTestId,
@@ -9,7 +10,6 @@ import {
910
getByDisplayValue,
1011
getAllByDisplayValue,
1112
} from './getByAPI';
12-
import waitForElement from '../waitForElement';
1313

1414
export type WaitForOptions = {
1515
timeout?: number,

src/helpers/makeQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// @flow
2+
import waitForElement from '../waitForElement';
23
import {
34
ErrorWithStack,
45
prepareErrorMessage,
56
createQueryByError,
67
} from './errors';
7-
import waitForElement from '../waitForElement';
88
import type { WaitForOptions } from './findByAPI';
99

1010
function isNodeValid(node: ReactTestInstance) {

0 commit comments

Comments
 (0)