Skip to content

Commit 6d498cf

Browse files
committed
fix: linter warnings
1 parent 15801bb commit 6d498cf

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/components/ui/button.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Button component ', () => {
1616
render(
1717
<Button testID="button">
1818
<Text> Custom child </Text>
19-
</Button>
19+
</Button>,
2020
);
2121
expect(screen.getByText('Custom child')).toBeOnTheScreen();
2222
});
@@ -33,7 +33,7 @@ describe('Button component ', () => {
3333
it('should call onClick handler when clicked', async () => {
3434
const onClick = jest.fn();
3535
const { user } = setup(
36-
<Button testID="button" label="Click the button" onPress={onClick} />
36+
<Button testID="button" label="Click the button" onPress={onClick} />,
3737
);
3838
expect(screen.getByTestId('button')).toBeOnTheScreen();
3939
await user.press(screen.getByTestId('button'));
@@ -47,7 +47,7 @@ describe('Button component ', () => {
4747
loading={true}
4848
label="Click the button"
4949
onPress={onClick}
50-
/>
50+
/>,
5151
);
5252
expect(screen.getByTestId('button')).toBeOnTheScreen();
5353
expect(screen.getByTestId('button-activity-indicator')).toBeOnTheScreen();
@@ -68,7 +68,7 @@ describe('Button component ', () => {
6868
disabled={true}
6969
onPress={onClick}
7070
variant="secondary"
71-
/>
71+
/>,
7272
);
7373
expect(screen.getByTestId('button')).toBeOnTheScreen();
7474
await user.press(screen.getByTestId('button'));

src/components/ui/input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const Input = forwardRef<NTextInput, NInputProps>((props, ref) => {
8888
focused: isFocussed,
8989
disabled: Boolean(props.disabled),
9090
}),
91-
[error, isFocussed, props.disabled]
91+
[error, isFocussed, props.disabled],
9292
);
9393

9494
return (
@@ -129,7 +129,7 @@ export const Input = forwardRef<NTextInput, NInputProps>((props, ref) => {
129129

130130
// only used with react-hook-form
131131
export function ControlledInput<T extends FieldValues>(
132-
props: ControlledInputProps<T>
132+
props: ControlledInputProps<T>,
133133
) {
134134
const { name, control, rules, ...inputProps } = props;
135135

src/lib/test-utils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const createAppWrapper =
2121

2222
const customRender = (
2323
ui: ReactElement,
24-
options?: Omit<RenderOptions, 'wrapper'>
24+
options?: Omit<RenderOptions, 'wrapper'>,
2525
) => {
2626
const Wrapper = createAppWrapper(); // make sure we have a new wrapper for each render
2727
return render(ui, { wrapper: Wrapper, ...options });
@@ -30,7 +30,7 @@ const customRender = (
3030
// use this if you want to test user events
3131
export const setup = (
3232
ui: ReactElement,
33-
options?: Omit<RenderOptions, 'wrapper'>
33+
options?: Omit<RenderOptions, 'wrapper'>,
3434
) => {
3535
const Wrapper = createAppWrapper();
3636
return {

0 commit comments

Comments
 (0)