Skip to content

Commit

Permalink
[Wallet] Add Japan to restricted CP-DOTO countries (#5708)
Browse files Browse the repository at this point in the history
### Description

This PR adds Japan to the list of restricted CP-DOTO countries.

### Tested

Updated tests.

### Related issues

- Fixes #5706

### Backwards compatibility

Yes
  • Loading branch information
jeanregisser authored Nov 4, 2020
1 parent f672b19 commit 77d9a38
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/mobile/src/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const pausedFeatures = {
// Using 2 letters alpha code. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
export const countryFeatures = {
RESTRICTED_CP_DOTO: {
JP: true,
PH: true,
},
SANCTIONED_COUNTRY: {
Expand Down
15 changes: 15 additions & 0 deletions packages/mobile/src/utils/countryFeatures.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ describe(getCountryFeaturesSelector, () => {
`)
})

it('returns the appropriate features for JP accounts', () => {
const state = getMockStoreData({
account: {
defaultCountryCode: '+81',
},
})

expect(getCountryFeaturesSelector(state)).toMatchInlineSnapshot(`
Object {
"RESTRICTED_CP_DOTO": true,
"SANCTIONED_COUNTRY": false,
}
`)
})

it('returns the appropriate features for CU accounts', () => {
const state = getMockStoreData({
account: {
Expand Down

0 comments on commit 77d9a38

Please sign in to comment.