Skip to content

Commit

Permalink
chore: skip @typescript lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanra committed Oct 16, 2024
1 parent f983937 commit f1eba1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hooks/useSafeInfo/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ describe('useSafeInfo', () => {
})

it('should return fetch and return Safe infos using individual hooks', () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { refetch, ...expectedResult } = createCustomQueryResult({
status: 'success',
data: safeInfo
Expand Down Expand Up @@ -98,6 +99,7 @@ describe('useSafeInfo', () => {
it('should return with loading state + partial data if any individual hook returns with loading state', async () => {
useThresholdSpy.mockReturnValueOnce(createCustomQueryResult({ status: 'pending' }))

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { refetch, ...expectedResult } = {
...queryPendingResult,
data: { ...safeInfo, threshold: undefined }
Expand Down Expand Up @@ -127,6 +129,7 @@ describe('useSafeInfo', () => {
useAddressSpy.mockReturnValueOnce(queryLoadingErrorResult)
useOwnersSpy.mockReturnValueOnce(queryLoadingErrorResult)

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { refetch, ...expectedResult } = {
...queryLoadingErrorResult,
errorUpdateCount: 2,
Expand Down

0 comments on commit f1eba1b

Please sign in to comment.