Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgerrard-pass committed Jan 31, 2025
1 parent d03df65 commit 187db31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const mockDepositAmounts = jest.mocked(useGetDepositAmountsByAge)
jest.mock('@react-native-firebase/firestore')
const openUrl = jest.spyOn(NavigationHelpers, 'openUrl')

jest.mock('features/forceUpdate/helpers/useRemoteBanner')
jest.mock('features/remoteBanner/helpers/useRemoteBanner')
const mockUseRemoteBanner = useRemoteBanner as jest.Mock
const bannerData = {
title: 'title 1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { reactQueryProviderHOC } from 'tests/reactQueryProviderHOC'
import { renderHook, waitFor } from 'tests/utils'

jest.mock('@react-native-firebase/firestore')
jest.mock('libs/firebase/firestore/getRemoteBanner/getBanner')
const mockGetBanner = getRemoteBanner as jest.Mock
jest.mock('libs/firebase/firestore/getRemoteBanner/getRemoteBanner')
const mockGetRemoteBanner = getRemoteBanner as jest.Mock

describe('useRemoteBanner', () => {
it('should return banner data', async () => {
mockGetBanner.mockReturnValueOnce({
mockGetRemoteBanner.mockReturnValueOnce({
title: 'title 1',
subtitle: 'subtitle 1',
redirectionUrl: 'www.test.fr',
Expand Down

0 comments on commit 187db31

Please sign in to comment.