Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kathaypacific committed Oct 6, 2023
1 parent 6e890a5 commit 30cef25
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
1 change: 0 additions & 1 deletion src/home/NotificationBox.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ describe('NotificationBox', () => {
it('renders reverify notification if decentrally verified and not CPV', () => {
const store = createMockStore({
app: {
requireCPV: true,
numberVerified: true,
phoneNumberVerified: false,
},
Expand Down
2 changes: 0 additions & 2 deletions src/home/NotificationCenter.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ describe('NotificationCenter', () => {
it('renders reverify notification if decentrally verified and not CPV', () => {
const store = createMockStore({
app: {
requireCPV: true,
numberVerified: true,
phoneNumberVerified: false,
},
Expand All @@ -302,7 +301,6 @@ describe('NotificationCenter', () => {
const store = createMockStore({
...storeDataNotificationsDisabled,
app: {
requireCPV: true,
numberVerified: true,
phoneNumberVerified: false,
},
Expand Down
23 changes: 0 additions & 23 deletions src/navigator/DrawerNavigator.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ describe('DrawerNavigator', () => {
it('shows the phone number when the user is verified', () => {
const store = createMockStore({
app: {
requireCPV: true,
numberVerified: false,
phoneNumberVerified: true,
},
Expand All @@ -155,30 +154,9 @@ describe('DrawerNavigator', () => {
expect(getByText('+1 302-306-1234')).toBeTruthy()
})

it("shows the phone number when the user is verified decentrally and we don't require CPV", () => {
const store = createMockStore({
app: {
requireCPV: false,
numberVerified: true,
phoneNumberVerified: false,
},
account: {
e164PhoneNumber: '+13023061234',
},
})
const { getByText } = render(
<Provider store={store}>
<MockedNavigator component={DrawerNavigator}></MockedNavigator>
</Provider>
)

expect(getByText('+1 302-306-1234')).toBeTruthy()
})

it('hides the phone number when the user is verified decentrally and we require CPV', () => {
const store = createMockStore({
app: {
requireCPV: true,
numberVerified: true,
phoneNumberVerified: false,
},
Expand All @@ -198,7 +176,6 @@ describe('DrawerNavigator', () => {
it('shows no phone number when the user is not verified', () => {
const store = createMockStore({
app: {
requireCPV: true,
numberVerified: false,
phoneNumberVerified: false,
},
Expand Down

0 comments on commit 30cef25

Please sign in to comment.