Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
imjordanxd committed Feb 7, 2025
1 parent 5f3b9ce commit a676640
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/useDebounce.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('useDebounce', () => {
});

it('should return two functions', () => {
const hook = renderHook(() => useDebounce(() => { }, 5));
const hook = renderHook(() => useDebounce(() => {}, 5));

expect(hook.result.current.length).toBe(2);
expect(typeof hook.result.current[0]).toBe('function');
Expand Down
4 changes: 2 additions & 2 deletions tests/useMedia.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { useMedia } from '../src';

const createMockMediaMatcher = (matches: Record<string, boolean>) => (qs: string) => ({
matches: matches[qs] ?? false,
addEventListener: () => { },
removeEventListener: () => { },
addEventListener: () => {},
removeEventListener: () => {},
});

describe('useMedia', () => {
Expand Down
8 changes: 4 additions & 4 deletions tests/useMultiStateValidator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component, useState } from 'react';
import { MultiStateValidator, useMultiStateValidator } from '../src/useMultiStateValidator';
import { UseStateValidatorReturn, ValidityState } from '../src/useStateValidator';

interface Mock extends jest.Mock { }
interface Mock extends jest.Mock {}

describe('useMultiStateValidator', () => {
it('should be defined', () => {
Expand All @@ -18,9 +18,9 @@ describe('useMultiStateValidator', () => {
initialValidity = [false],
wrapper?: RenderHookOptions<{ children: React.ReactNode }>['wrapper']
): [
MultiStateValidator<any, number[]>,
RenderHookResult<[Function, UseStateValidatorReturn<ValidityState>], any>
] {
MultiStateValidator<any, number[]>,
RenderHookResult<[Function, UseStateValidatorReturn<ValidityState>], any>
] {
return [
fn,
renderHook(
Expand Down
2 changes: 1 addition & 1 deletion tests/useTimeoutFn.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('useTimeoutFn', () => {
});

it('should return three functions', () => {
const hook = renderHook(() => useTimeoutFn(() => { }, 5));
const hook = renderHook(() => useTimeoutFn(() => {}, 5));

expect(hook.result.current.length).toBe(3);
expect(typeof hook.result.current[0]).toBe('function');
Expand Down

0 comments on commit a676640

Please sign in to comment.