diff --git a/__snapshots__/features/share/pages/ShareAppModalVersionA.native.test.tsx.native-snap b/__snapshots__/features/share/pages/ShareAppModalVersionA.native.test.tsx.native-snap new file mode 100644 index 00000000000..89883731552 --- /dev/null +++ b/__snapshots__/features/share/pages/ShareAppModalVersionA.native.test.tsx.native-snap @@ -0,0 +1,598 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ShareAppModalVersionA should match snapshot 1`] = ` + + + + + + + + + La culture, ça ce partage ! + + + + + + + rightIcon-SVG-Mock + + + + + + + + + + + + + + undefined-SVG-Mock + + + + + + 35 % des jeunes en France n’ont pas encore le pass Culture. + + + + Fais découvrir le pass à tes amis ! + + + + + + + + button-icon-left-SVG-Mock + + + + + + Partager l’app + + + + + + + + + button-icon-left-SVG-Mock + + + + + + Non merci + + + + + + + + + + + +`; diff --git a/__snapshots__/features/share/pages/ShareAppModalVersionB.native.test.tsx.native-snap b/__snapshots__/features/share/pages/ShareAppModalVersionB.native.test.tsx.native-snap new file mode 100644 index 00000000000..b4893459782 --- /dev/null +++ b/__snapshots__/features/share/pages/ShareAppModalVersionB.native.test.tsx.native-snap @@ -0,0 +1,598 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ShareAppModalVersionB should match snapshot 1`] = ` + + + + + + + + + La culture, ça ce partage ! + + + + + + + rightIcon-SVG-Mock + + + + + + + + + + + + + + undefined-SVG-Mock + + + + + + 35 % des jeunes en France n’ont pas encore le pass Culture. + + + + Fais découvrir le pass à tes amis ! + + + + + + + + button-icon-left-SVG-Mock + + + + + + Partager l’app + + + + + + + + + button-icon-left-SVG-Mock + + + + + + Non merci + + + + + + + + + + + +`; diff --git a/src/features/share/pages/ShareAppModalVersionA.native.test.tsx b/src/features/share/pages/ShareAppModalVersionA.native.test.tsx new file mode 100644 index 00000000000..ac7da2bab0e --- /dev/null +++ b/src/features/share/pages/ShareAppModalVersionA.native.test.tsx @@ -0,0 +1,17 @@ +import React from 'react' + +import { render, screen } from 'tests/utils' + +import { ShareAppModalVersionA } from './ShareAppModalVersionA' + +jest.mock('react-native-safe-area-context', () => ({ + useSafeAreaInsets: jest.fn(() => ({ bottom: 10 })), +})) + +describe('ShareAppModalVersionA', () => { + it('should match snapshot', () => { + render() + + expect(screen).toMatchSnapshot() + }) +}) diff --git a/src/features/share/pages/ShareAppModalVersionA.web.tsx b/src/features/share/pages/ShareAppModalVersionA.web.tsx new file mode 100644 index 00000000000..053a09fa886 --- /dev/null +++ b/src/features/share/pages/ShareAppModalVersionA.web.tsx @@ -0,0 +1 @@ +export const ShareAppModalVersionA = () => null diff --git a/src/features/share/pages/ShareAppModalVersionB.native.test.tsx b/src/features/share/pages/ShareAppModalVersionB.native.test.tsx new file mode 100644 index 00000000000..821e48c6af2 --- /dev/null +++ b/src/features/share/pages/ShareAppModalVersionB.native.test.tsx @@ -0,0 +1,17 @@ +import React from 'react' + +import { render, screen } from 'tests/utils' + +import { ShareAppModalVersionB } from './ShareAppModalVersionB' + +jest.mock('react-native-safe-area-context', () => ({ + useSafeAreaInsets: jest.fn(() => ({ bottom: 10 })), +})) + +describe('ShareAppModalVersionB', () => { + it('should match snapshot', () => { + render() + + expect(screen).toMatchSnapshot() + }) +}) diff --git a/src/features/share/pages/ShareAppModalVersionB.web.tsx b/src/features/share/pages/ShareAppModalVersionB.web.tsx new file mode 100644 index 00000000000..74a07b51061 --- /dev/null +++ b/src/features/share/pages/ShareAppModalVersionB.web.tsx @@ -0,0 +1 @@ +export const ShareAppModalVersionB = () => null