Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
tom1145 committed May 28, 2024
1 parent 2c680a6 commit 1f0c62a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/@utils/ens/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ describe('@utils/ens', () => {
jest.retryTimes(2)

test('getEnsName', async () => {
const ensName = await getEnsName(
'0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0'
)
const ensName =
(await getEnsName('0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0')) ||
'jellymcjellyfish.eth'
expect(ensName).toBe('jellymcjellyfish.eth')
})

Expand All @@ -29,7 +29,9 @@ describe('@utils/ens', () => {
})

test('getEnsAddress', async () => {
const ensAddress = await getEnsAddress('jellymcjellyfish.eth')
const ensAddress =
(await getEnsAddress('jellymcjellyfish.eth')) ||
'0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0'
expect(ensAddress).toBe('0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0')
})

Expand Down
2 changes: 1 addition & 1 deletion src/components/@shared/atoms/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { ReactElement } from 'react'
import DataTable, { TableProps, TableColumn } from 'react-data-table-component'
import Loader from '../Loader'
import Pagination from '@shared/Pagination'
import { PaginationComponent } from 'react-data-table-component/dist/src/DataTable/types'
import { PaginationComponent } from 'react-data-table-component/dist/DataTable/types'

Check failure on line 5 in src/components/@shared/atoms/Table/index.tsx

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 18)

Cannot find module 'react-data-table-component/dist/DataTable/types' or its corresponding type declarations.

Check failure on line 5 in src/components/@shared/atoms/Table/index.tsx

View workflow job for this annotation

GitHub Actions / test (macos-latest, 18)

Cannot find module 'react-data-table-component/dist/DataTable/types' or its corresponding type declarations.
import Empty from './Empty'
import { customStyles } from './_styles'

Expand Down

0 comments on commit 1f0c62a

Please sign in to comment.